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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

DAX formula

Hi,

I have a slicer that uses this: 

StandardizedName =
SWITCH(
    TRUE(),
    'Connection Table'[Name] = "Tomatoes production", "Tomatoes",
    'Connection Table'[Name] = "Cucumbers production", "Cucumbers",
    'Connection Table'[Name] = "Red bell pepper", "Peppers",
    'Connection Table'[Name] = "Yellow bell pepper ", "Peppers",
    COALESCE('Connection Table'[Name], "Unknown")  // Default case
)
What I now want to achieve, is that when I choose "Tomatoes" from my slicer, I would like to have three sub-options, which should be the material type. For example: "Spanish Tomatoes" , "Portugese Tomates" and "Brazilian tomatoes". Right now, the materials are already connected to the "Tomatoes" - so I am able to choose between the different tomato materials if i add Material.Material Level 01 as a filter to a specific visual. The materials are from another table called "Production Orders" and then from the Column "Material.Material Level 01". But I would like to make it possible to choose the type of material directly under "Tomatoes" from my slicer, which comes from "Connection Table". How do I achieve this?
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

If you have a clear relationship between Connection Table and Production orders. You can directly put the second field into the slicer. For example, when the two fields are in the slicer, it appears the hierarchy.

vstephenmsft_0-1734417584444.png

 

If the method like the one above doesn't work, then I guess you should create a table that contains your Test(fruit) column and Material.Material 01 column, and then act as a slicer.

You'll need to create measures as filters to implement filtering for this slicer. Or you can use this new table to create relationships with other tables for filtering.

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

Hi @Anonymous ,

 

Sorry, I dont quite understand your requirement.

Is this your expected result? There're suboptions under 'Tomatoes' in the slicer.

vstephenmsft_0-1734340061377.png

All you need is to put the two fields in the same slicer, it will be the hierarchy slicer. The table visual with data from Table(2) will be filtered beacause of the relationship between the Table and the Table(2).

vstephenmsft_2-1734340225654.png

vstephenmsft_1-1734340217523.png

 

If you still have doubts, please provide a more detailed description, preferably some virtual sample data, and the expected results.

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

Hi @Anonymous 

Thanks for your help.

What I want to achieve is to add the Material.Material 01 to my slicer, which is from another table. So I want "Mango" to have three suboptions (or whatever the amount of different kind of materials is for that fruit) in the slicer - which all originates from another table. 

Skærmbillede 2024-12-16 143522.pngSkærmbillede 2024-12-16 143710.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Anonymous
Not applicable

Hi @Anonymous ,

 

If you have a clear relationship between Connection Table and Production orders. You can directly put the second field into the slicer. For example, when the two fields are in the slicer, it appears the hierarchy.

vstephenmsft_0-1734417584444.png

 

If the method like the one above doesn't work, then I guess you should create a table that contains your Test(fruit) column and Material.Material 01 column, and then act as a slicer.

You'll need to create measures as filters to implement filtering for this slicer. Or you can use this new table to create relationships with other tables for filtering.

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

Thanks for your help. I do not have a clear relationship, so I will try to create a "bridge" table. 

Anonymous
Not applicable

To sum up: How do I add 'Productions Orders'[Material.Material Level 01] as options to my slicer from 'Connection Table'[StandardizedName] if the two columns are already related and working as intended. 

Anonymous
Not applicable

The data is sensitive, so unfortunately I cannot share a sample data. 

A sample data doesn't have to sensitive. It's just representation of your actual data. You can rename the values inside the column and possibly randomized the numbers but it must represent the actual data. And from that sample data, the expected result and the reasoning behind.

 

It is an extra work but we don't wanna be trying to shoot at something without properly aiming at it.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Tahreem24
Super User
Super User

@Anonymous Kindly share sample input data example and expected output.

 

 

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.