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.
Hey Everyone,
I have a dashboard using a matrix visualization to summarize some data. Some of the columns are text. The text columns are aggregated (first, last, count or count distinct) and I can't figure out how to turn that off and just return a blank value at the topmost levels instead. Picking the first/last value doesn't help me here, I would rather just have it blank. Can I make a column or measure in place that returns blank at the "ID" level and returns the non aggregated values for each date? I've tried this a few different ways but can't get it working. For example in the image below, we have 2 different values in "ID 2" for the "1422957" ID.
But when we view it at the highest level (ID), it should just be blank instead of first or last text aggregation.
Thanks in advance:)
Hi @Anonymous ,
HASONEVALUE funtion might be helpful to solve your issue.
Here's a simple sample. The return value corresponding to the ID is 0, as you said, you can put blank(), the return value corresponding to the date is 1, you can put the original measurement.
Measure = IF(HASONEVALUE('Table'[Date]),1,0)
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , isinscope can help for level
example blank for a level and for blank value of another level
if(isinscope(Table[ID]) || isblank(max(Table[ID2])), blank(), [measure])
https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/
Hey @amitchandak ,
Thank you for your reply. What is the "measure" you are using the the formula? I tried the following formula but is not working and it just returns blank for everything:
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 | |
100 | |
76 | |
74 | |
49 |
User | Count |
---|---|
146 | |
108 | |
106 | |
90 | |
62 |