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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
PBIMike
Helper III
Helper III

Hide Data at a Certain Matrix Table Level

Hello,

 

I have a table with 1 lvl of drilldown, eg:

 

Customer                   Value                    Sale Type

A                                 100                       xxxx

--> order 1                 40                         New

--> order 2                 60                         Upsell

B                                 200                       xxxx

--> order 1                 140                        New

--> order 2                 60                         Upsell

 

I would like the result under Sale Type at the customer level to be nil. Currently, I only have the 'first' or 'last' option, meaning Sale Type against customer A would be either New or Upsell, but really it's a mix so I just want it to be blank.

 

The following link looked to be inthe right direction, but I think this only works for values?

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

 

 

Many thanks,

Mike

1 ACCEPTED SOLUTION
DouweMeer
Impactful Individual
Impactful Individual

Probably someting like the following would work:

measure = if ( countrows ( distinct ( [salestype] ) ) > 1 , "Mix" , min ( [salestype] ) )

View solution in original post

7 REPLIES 7
amitchandak
Super User
Super User

@PBIMike , see if this can help

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
DouweMeer
Impactful Individual
Impactful Individual

@PBIMike 

Looks like a realization report I've finished earlier where we split maintained with won business. 

What is your measure for Sales type?

No measures. Sales Type is just directly pulling from a column in excel data.

DouweMeer
Impactful Individual
Impactful Individual

Probably someting like the following would work:

measure = if ( countrows ( distinct ( [salestype] ) ) > 1 , "Mix" , min ( [salestype] ) )

Thank you, but to be honest I'm not sure how to create a measure in that manner. It sounds like you attach it to a field. However, I only know how to create a measure as a field in its own right currently.

 

Presumably I'm attaching the measure to the "Customer" field somehow, so that if the measure criteria is met the Sales Type field is overriden? (to be "mix" in your example below)

DouweMeer
Impactful Individual
Impactful Individual

@PBIMike 

I'm just lazy in the comment section. Replace [Salestype] by a 'Table'[Salestype]. 

But the return value of a measure should always be a single value. When you apply the min expression, a string value can be returned. 

Thank you! I've been working using data rather than measures too often - will try and change that 🙂

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.