Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hi community,
I have been trying to figure it out for a while but with no success.
I have an easy table where one IA has many types and I want to calculate only one type based on numbers. In this example, this IA has 134 RD (Rodinný dům (home house)) and 0 BD (apartment building). I compare both number and in this case it works fine. The result is Rodinný dům (home house)
This is the measure:
However, when I changed the measure to more and equeal, it will stop working properly (cross join is applied and context is lost)
The same, when I replace blank with a value.
How is it possible that with a little change I can lose the full context and cross join is applied? IA is from DIM_IA and Type (objekt type) from DIM_ROP.
Below I am attaching all measures. Here I am adding +0, otherwise the row in the table disappared because the row has no value. Other IA can have both numbers but mostly one of them doesn't exist.
Thank you,
Jan
Solved! Go to Solution.
I think you can combine the >= with a check for NOT ISBLANK()
Type calculated =
IF ( NOT ISBLANK ( [RD] ) && [RD] >= [BD], "Rodinny dum" )
When you change the condition to >= the extra row which appears shows blank for both [RD] and [BD]. As blank = blank [Type calculated] returns the value, rather than returning blank as it did when you had the condition as >.
Thank you @johnt75, it makes sense. Do you think there is a dax expression which would work in this case? I found out that I can use a visual calculation and hide both the columns BD and RD by slicing them. I believie this is not so clean solution as this is only a small pattern that I am showing. I just wonder, if dax can handle this by not comparing blank values?
I think you can combine the >= with a check for NOT ISBLANK()
Type calculated =
IF ( NOT ISBLANK ( [RD] ) && [RD] >= [BD], "Rodinny dum" )
Works perfect. DAX evaluation with a blank value can be tricky. Thank you for the explenation and following solution.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |