Događaji
Power BI DataViz Svjetsko prvenstvo
M02 14 16 - M03 31 16
Uz 4 šanse za ulazak, možete osvojiti konferencijski paket i plasirati se u LIVE Grand Finale u Las Vegasu
Saznajte višeOvaj preglednik više nije podržan.
Nadogradite na Microsoft Edge da iskoristite najnovije osobine, sigurnosna ažuriranja i tehničku podršku.
When connecting to a data source using DirectQuery, you can use the Assume referential integrity selection to enable running more efficient queries against your data source. This feature has a few requirements of the underlying data, and it's only available when using DirectQuery, or in Direct Lake mode in Microsoft Fabric's semantic model.
Bilješka
Assume Referential Integrity setting for Microsoft Fabric's semanic model can only be set through the service using a web browser. It cannot be set by using Power BI Desktop.
Setting Assume referential integrity enables queries on the data source to use INNER JOIN statements rather than OUTER JOIN, which improves query efficiency.
This setting is an advanced setting, and is only enabled when connecting to data using DirectQuery. The following requirements are necessary for Assume referential integrity to work properly:
In this context, the From column is the Many in a One-to-Many relationship, or it's the column in the first table in a One-to-One relationship.
The following example demonstrates how Assume referential integrity behaves when used in data connections. The example connects to a data source that includes an Orders table, a Products table, and a Depots table.
In the following image that shows the Orders table and the Products table, referential integrity exists between Orders[ProductID] and Products[ProductID]. The [ProductID] column in the Orders table is never Null, and every value also appears in the Products table. As such, Assume referential integrity should be set to get more efficient queries. Using this setting doesn't change the values shown in visuals.
In the next image, notice that no referential integrity exists between Orders[DepotID] and Depots[DepotID], because the DepotID is Null for some Orders. As such, Assume referential integrity should not be set.
Finally, no referential integrity exists between Orders[CustomerID] and Customers[CustID] in the following tables. The CustomerID contains a value, CustX, that doesn't exist in the Customers table. As such, Assume referential integrity should not be set.
To enable this feature, select Assume referential integrity as shown in the following image.
When selected, the setting is validated against the data to ensure there are no Null or mismatched rows. However, for cases with a very large number of values, the validation isn't a guarantee that there are no referential integrity issues.
In addition, the validation occurs at the time of editing the relationship, and does not reflect any subsequent changes to the data.
If you set Assume referential integrity when there are referential integrity issues in the data, that setting doesn't result in errors. However, it does result in apparent inconsistencies in the data. For example, for the relationship to the Depots table described here, it would result in the following:
Događaji
Power BI DataViz Svjetsko prvenstvo
M02 14 16 - M03 31 16
Uz 4 šanse za ulazak, možete osvojiti konferencijski paket i plasirati se u LIVE Grand Finale u Las Vegasu
Saznajte višeObučavanje
Modul
Erstellen von Power BI-Modellbeziehungen - Training
Power BI-Modellbeziehungen bilden die Grundlage eines tabellarischen Modells. Definieren von Power BI-Modellbeziehungen, Einrichten von Beziehungen, Erkennen von DAX-Beziehungsfunktionen und Beschreiben der Beziehungsauswertung.
Certifikacija
Microsoft Certified: Power BI Data Analyst Associate - Certifications
Erfahren Sie mehr über die Methoden und Best Practices, die den geschäftlichen und technischen Anforderungen für die Modellierung, Visualisierung und Analyse von Daten mit Microsoft Power BI entsprechen.