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.
I'm trying to create a measure that calculates the number of patients who have not had a visit within a certain range of time and I came across behavior I don't understand where measures with addition ignore other filters, while other measures (including multiplication) work fine..
Two test measures:
TestAddition = max(patient[patient_id])+1
TestMultiplication = 1*max(patient[patient_id])
The result:
On the left, the filters are ignored for the addition case, while on the right, the filters are applied.
Why is this happening and is there a common workaorund?
Solved! Go to Solution.
I suspect, without doing any testing cuz I'm lazy, is that you are seeing how Power BI maths up the handling around a BLANK().
BLANK() + 1 = 1
BLANK() * 1 = BLANK()
And rows with blank values get "filtered out"
I suspect, without doing any testing cuz I'm lazy, is that you are seeing how Power BI maths up the handling around a BLANK().
BLANK() + 1 = 1
BLANK() * 1 = BLANK()
And rows with blank values get "filtered out"
That makes so much sense. I think it explains everything. I'll have to test it against my more fundamental measure.
Thanks
Todd
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 |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |