Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi there,
I am trying to calculate the percentage of events that occurred at a location. I want to calculate the percentage in such a way that if I select the year from the slicer then it gives me the percentage of events that occurred in the selected year. If nothing is selected then it gives a percentage of all years.
I am calculating measure something like that:
Solved! Go to Solution.
# Events = DISTINCTCOUNT( 'Main Table'[OutageID] )
Pct =
DIVIDE(
[# Events],
CALCULATE( [# Events], ALLEXCEPT( 'Main Table', 'Date'[RY] ) )
)
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
# Events = DISTINCTCOUNT( 'Main Table'[OutageID] )
Pct =
DIVIDE(
[# Events],
CALCULATE( [# Events], ALLEXCEPT( 'Main Table', 'Date'[RY] ) )
)
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
User | Count |
---|---|
102 | |
91 | |
83 | |
77 | |
71 |
User | Count |
---|---|
113 | |
104 | |
100 | |
73 | |
65 |