Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

Disabling text field aggregation in matrix

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. 

teckchan_0-1620265310323.png

But when we view it at the highest level (ID), it should just be blank instead of first or last text aggregation.

teckchan_1-1620265511771.png

 

Thanks in advance:)

3 REPLIES 3
v-stephen-msft
Community Support
Community Support

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)

16.png

 

 

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.

amitchandak
Super User
Super User

@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/

Anonymous
Not applicable

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:

Measure = if(isinscope('Sign Billable Transactions'[end_user_id]) || isblank(max('Sign Billable Transactions'[echosignid])),BLANK(),"0")
 Both the ID fields are text fields and and one "ID" can have multiple "ID 2" 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.