Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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:
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
58 | |
56 | |
56 | |
38 | |
29 |
User | Count |
---|---|
75 | |
62 | |
45 | |
40 | |
39 |