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

Having one matrix blank until a category is selected from another matrix

I've forgotten how to do this but I'm sure I've done it before, ages ago.

 

I have a matrix that shows Level 1 [Function] and total cost.

I have a second matrix which shows [Sub-Function] and total cost.

 

Selecting a Function from the first matrix, naturally filters the second.

I want the second matrix to be blank until someone selects a Function from the first.

 

I've seen a function online which doesn't work.

IF(CALCULATE(DISTINCTCOUNT('Data'[Function]),ALLSELECTED('Data'[Function]))=1,"Y","N")
 
Any ideas?
1 ACCEPTED SOLUTION
Anonymous
Not applicable

I actually just managed to locate the report I had done it in previously - I used

 

Total = IF(HASONEFILTER('Data'[Function]),'''Measures'[Total],BLANK())

View solution in original post

3 REPLIES 3
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could try ISFILTERED() or ISCROSSFILTERED() function. If you have found your previous solution, you could accept your own reply.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Gordonlilj
Solution Sage
Solution Sage

Hi,

 

Not sure if its exactly what you're after but you one way could be to create a measure like below

Measure = IF(ISFILTERED('Table'[Function]),1,0)

Then to add the measure as a visual filter and set it like below

Capture.PNG 

Anonymous
Not applicable

I actually just managed to locate the report I had done it in previously - I used

 

Total = IF(HASONEFILTER('Data'[Function]),'''Measures'[Total],BLANK())

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.