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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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