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.
Hello -
What is the best way to remove the % Change total from the table? I tried to use HASONEVALUE() bt it doesn't seem to be working.
Measure:
Thank you
Hi @lilych ,
Try the following measure and check if it works.
% Change =
VAR a =
IF ( NOT ( ISBLANK ( [# Cases] ) ), DIVIDE ( [YoY Difference], [# Case LY] ) )
RETURN
IF ( ISINSCOPE ( 'Table'[Month] ), a, BLANK () )
@lilych , isfiltered or isinscope should help
https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/
https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/
@lilych - So you did HASONEVALUE on month column for example?
Measure:
Thanks @Greg_Deckler . When I used the HASONEFILTER, it returns all blanks (see TEST % Change) which has the measure you outlined. Not sure why this is happening.
@lilych - HASONEVALUE, not HASONEFILTER. Also could try ISINSCOPE, Also, could do:
Measure
<blah blah blah>
VAR __CountAll = COUNTROWS(ALL('Table')
VAR __Count = COUNTROWS('Table')
RETURN
IF(__Count = __CoutAll,BLANK(), <something else>)
Thanks @Greg_Deckler - I meant HASONEVALUE, not HASONEFILTER, and it returned all blanks. I've tried ISINSCOPE can't seem to figure that out either. I'm new to DAX and will continue try to find out how to make this work.
Could it be that it is still calculating the % CHange of the grand total, which is why it isn't working?
Thanks for the help
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 |
---|---|
107 | |
98 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |