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 know that it sounds like a beginner level problem, but being a seasoned Power BI guy I've ran into a quite weird scenario that upon comparing two measures, the equal to comparison is not working correctly.
Here's the DAX:
Solved! Go to Solution.
Please supply some data to test and examples of when this does not work.
How are you calculating the 2 measures [Total Activities] and [Yearly Average of Activities] ?
What data types are these measures? By their naming I'd expect [Total Activities] to be Whole Number and [Yearly Average of Activities] to be a Decimal?
If so, could it be that the decimal is formatted to look like a whole number, thereby giving the impression that both measures are equal at times?
Regards
Phil
Proud to be a Super User!
@PhilipTreacy I found out partially it was due to formatting (decimal formatted as whole number), topped up with some filter context issues which I took care of.
Cheers mate. 🙂
Please supply some data to test and examples of when this does not work.
How are you calculating the 2 measures [Total Activities] and [Yearly Average of Activities] ?
What data types are these measures? By their naming I'd expect [Total Activities] to be Whole Number and [Yearly Average of Activities] to be a Decimal?
If so, could it be that the decimal is formatted to look like a whole number, thereby giving the impression that both measures are equal at times?
Regards
Phil
Proud to be a Super User!
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 |
---|---|
112 | |
97 | |
85 | |
67 | |
59 |
User | Count |
---|---|
150 | |
120 | |
100 | |
87 | |
68 |