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 have a table of regions and net sales. There is a row that has a blank value for a region, but still has net sales. I would like to hide this row from view, but still include all the data in that row in the grand total. Is this possible?
I've tried using a page-level or visualizaton-level filter, but while the row dissappears it also removes the data from the grand total.
Thank you in advance.
Solved! Go to Solution.
Hi @Anonymous ,
To create a measure as below.
Grand Total = IF(MAX('net sales'[Region]) = BLANK(),BLANK(),CALCULATE(SUM('net sales'[net sales])))
Also please find the pbix attached.
Regards,
Frank
Hi @Anonymous
You can do this. You can filter the blank region ( For ex: In visual filter)
Create this measure.
Hi Raj,
Thanks for the reply, I have some follow up questions.
If my table's name is Net Sales, and the name of the column being summed is also Net Sales,
Hi @Anonymous ,
To create a measure as below.
Grand Total = IF(MAX('net sales'[Region]) = BLANK(),BLANK(),CALCULATE(SUM('net sales'[net sales])))
Also please find the pbix attached.
Regards,
Frank
it causes performance issue in direct query mode. Is there any way this can be optimized. Also with this any other measure you bring in matrix needs to be manipulated like above.
I applised physical filter and used CALCULATE(Expression, ALL(Ignore Filter column) and it worked. but again lot of performance issue with direct query mode.
Hi @Anonymous ,
Does that make sense? If so, kindly mark my answer as the solution to close the case please. Thanks in advance.
Regards,
Frank
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 |