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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
shaileng
Frequent Visitor

Simple DAX question

Hi there,

 

Quick DAX question :

 

I have a table TABLE_DATA with 3 cols COLA,COLB,COLC.

I have another table named TABLE_SUPPORT which holds 3 rows like "OptionA","OptionB" and "OptionC"

 

I have a report with 2 visuals i.e.,

1. A drop down slicer based on TABLE_SUPPORT to select a value from one of 3 options

2. A pie chart which is expected to draw the pie based on the selection in the slicer so if OptionA is selected then COLA should be used to populate the pie. If OptionB is selected then COLB should be used to populate the pie and similarly OptionC is selected the pie should be populated using COLC.

 

I could write a DAX function to detected the currently selectedValue from the drop down.

I tried writing a new column based on formula which uses a simple SWITCH on the SelectedValue measure and it always turning out to be blank. I used same selectedValue to print on a card visual and it shows OptionA very correctly.

 

Any idea what's happening ?

 

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

Sounds like you need to use the disconnected table trick:

https://community.powerbi.com/t5/Community-Blog/Solving-Attendance-with-the-Disconnected-Table-Trick...

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

Sounds like you need to use the disconnected table trick:

https://community.powerbi.com/t5/Community-Blog/Solving-Attendance-with-the-Disconnected-Table-Trick...

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.