The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have the following matrix in Power BI Desktop with Division and SKU on the Rows and Sales on the Values:
I have hidden the Division subtotals. When I collapse by Division, I get the following:
Is there a way I can suppress the Division totals in this view as well? I want to just show the three divisions with blanks next to the labels. I can't really use HASONEVALUE in a measure on the SKU column as Division-3 only has one SKU. I can't use HASONEVALUE on the Division column as it will suppress the values in the expanded view (first picture above) which I don't want.
Any ideas would be appreciated.
Solved! Go to Solution.
You can use HASONEFILTER like this:
Sales1 = IF(HASONEFILTER('Table'[SKU]), AVERAGE('Table'[Sales]), "")
With this result:
Kind regards
Djerro123
-------------------------------
If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.
Keep those thumbs up coming! 🙂
Proud to be a Super User!
You can use HASONEFILTER like this:
Sales1 = IF(HASONEFILTER('Table'[SKU]), AVERAGE('Table'[Sales]), "")
With this result:
Kind regards
Djerro123
-------------------------------
If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.
Keep those thumbs up coming! 🙂
Proud to be a Super User!
Brilliant, it works like a charm. Thanks a lot! Nice trick to use "" instead of Blank().
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
79 | |
71 | |
48 | |
41 |
User | Count |
---|---|
138 | |
108 | |
71 | |
64 | |
58 |