This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowThe Fabric community is upgrading! Read all of the details including the timeline and what you can expect. Learn more
I am trying to create a column to compare two dates but the error is saying there's no relationship. This is a many-to-one relationship from a schedule to a list of records. Both dates are formatted correctly. Any ideas why this relationship is not working? Not sure what the curly brackets at each end of the relationship is representing.
Solved! Go to Solution.
Thank you for the help, I ended up changing the storage to Import which fixed the relationship so it was no longer limited.
Thank you for the help, I ended up changing the storage to Import which fixed the relationship so it was no longer limited.
Hi @mkohler281 ,
As @vojtechsima said, In Power BI Desktop model view, you can interpret a relationship as being limited. A limited relationship is represented with parenthesis-like marks ( ) after the cardinality indicators.
A model relationship is limited when there's no guaranteed "one" side. A limited relationship can happen for two reasons:
There are some restrictions related to limited relationships:
RELATED DAX function can't be used to retrieve the "one" side column values.For @vojtechsima's workaround, because his storage mode is Import, the MAXX() function could work , but your storage mode is DirectQuery, there are many limitations for this storage mode
MAXX function (DAX) - DAX | Microsoft Learn
You need to re-create your data model or try to create model in SSAS.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello, @mkohler281 ,
the brackets represents a "Limited relationship" and RELATED is not supported in those:
https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-relationships-understand
You can have a workaround or resolve the "limited relationship".
The Workaround can look like this:
Column =
var currentRow = 'fact'[Test]
var matchingRows = MAXX(FILTER(dim, dim[dim] = currentRow), dim[dim])
return matchingRowsyou don't even need a relationship for that:
Thank you, but it looks as though this does not work in Direct Query.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
| User | Count |
|---|---|
| 23 | |
| 22 | |
| 14 | |
| 14 | |
| 13 |
| User | Count |
|---|---|
| 45 | |
| 38 | |
| 24 | |
| 22 | |
| 20 |