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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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