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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors