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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors