Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
My data model has a column "CompanyName" and a series of accounting transactions.
I have 2 measures:
They both work well, but the report page contains a slicer with the field "CompanyName".
When the slicer is marked (ie the only company in the model is selected), the function SAMEPERIODLASTYEAR breaks and we get the error:
MdxScript(Model) (110,61) Error in measure Sales LY: SAMEPERIODLASTYEAR requires a contiguous selection when the date column is in one side of a bidirectional relationship.
This doesn't make sense to me, because when the slicer selects the only company in the model, it should be selecting all the rows in the "Sales" table. I have the calendar table "Calendar" marked as Date.
Solved! Go to Solution.
Do you have the relationship between Sales and Calendar as a bidirectional relationship?
If so you should change that to a single direction relationship.
Br,
Magnus
Do you have the relationship between Sales and Calendar as a bidirectional relationship?
If so you should change that to a single direction relationship.
Br,
Magnus
That solved it!
🙂
It turns out the cardinality of this relationship was 1 to 1 and bidirectional.
Changing it to many to one and unidirectional solved the problem!
But why is this?
Thank you for your help!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
98 | |
97 | |
81 | |
77 | |
66 |
User | Count |
---|---|
126 | |
105 | |
103 | |
81 | |
72 |