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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Reveal Information when drilling down

Hi,

 

My dataset involves many materials that are all in some company. For example, there are 10 different meterials (product codes) within one company, and several companies. When I drill down on a company, then drill down on a specific material for more information about that material, I want a little visualization to show me which material I have selected. 

 

I've tried to use the formula: 

if(DISTINCTCOUNT(Table[Material]) = 1, Table[Material],"")

(So that when only one material is selected, I get the material field)

 

I put the "Material" field into a Card visual and set the field to  "First". When I drill down to the Material that I want to analyze, it works- I get the card to give me the material code selected. However, if I am at the company level and have not yet selected anything I see the first alphabetical material code in that company. I would like this card visual to show me a blank if no specific material is selected.

 

Is there a way to do this?

 

 
1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Anonymous

Create a measure instead of a column (Modeling->new measure)

Measure = SELECTEDVALUE(Sheet3[material])

3.png

5.png

 

Best Regards

Maggie

View solution in original post

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @Anonymous

Create a measure instead of a column (Modeling->new measure)

Measure = SELECTEDVALUE(Sheet3[material])

3.png

5.png

 

Best Regards

Maggie

Stachu
Community Champion
Community Champion

you can use SELECTEDVALUE

SELECTEDVALUE(Table[Material], BLANK())


Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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