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.
Hey,
I have a standard one-to-many relationship between a dimension and a fact table.
I need to create calculated column for the dimension table where values are based on whether said dimension appears in a fact table.
I would only need 1 or 0 for each row on dimension table, but I can't seem to figure this one out.
edited for clarification.
Solved! Go to Solution.
I managed to get the result I was looking for with this.
= IF ( ISBLANK ( CALCULATE ( COUNTROWS ( VALUES ( Fact) ) ) ) ; 0 ; 1 )
@Anonymous are you looking for a column or value?
Proud to be a Super User!
@vanessafvg I'm looking for a value.
One calculated column for dimension table and in that column values 0 or 1 based on the fact table.
I managed to get the result I was looking for with this.
= IF ( ISBLANK ( CALCULATE ( COUNTROWS ( VALUES ( Fact) ) ) ) ; 0 ; 1 )
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 |
---|---|
111 | |
96 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |