Forum Discussion
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
Probably someting like the following would work:
measure = if ( countrows ( distinct ( [salestype] ) ) > 1 , "Mix" , min ( [salestype] ) )
7 Replies
- DouweMeerImpactful Individual
Looks like a realization report I've finished earlier where we split maintained with won business.
What is your measure for Sales type?
- amitchandakSuper User
PBIMike , see if this can help
https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/