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
dkrishnan
Frequent Visitor

Power Bi Dynamic Slicer

HI

 

I have a table with as per below:

DATE_CODEPARTNERREVENUE_TYPEHUBPRODUCTCOMPONENT_DIRECTIONCALL_COUNTDURATIONAMOUNT
01-03-2020AMOBILEEURAAAB200040000500
01-03-2020BFIXEDASIABBAB100030000200

 

Now i want to create a chart that dynamically change to either show CALL_COUNT or DURATION or AMOUNT. Whenever i tried using selectedvalues, it is not enabling me to choose either CALL_COUNT, DURATION or AMOUNT. They are not measured column rather is data value. How do i achieve this using a dynamic slicer or any other option?

 

Appreciate any help

 

regards

deven

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @dkrishnan,

You can create a new table with all measure field names and use this table field on a slicer.
After these steps, you can write a measure formula to compare current slicer seleciton and use with switch function to redirect current value to specific measure formula results.

Calculate table:

Selector= {"Measure1","Measure2","Measure3"}

Measure:

Measure =
SWITCH (
    SELECTEDVALUE ( Selector[Value] ),
    "Measure1", [Measure1],
    "Measure2", [Measure2],
    "Measure3", [Measure3],
    Sum(Table[Amount])
)

Regards,

Xiaoxin SHeng

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

HI @dkrishnan,

You can create a new table with all measure field names and use this table field on a slicer.
After these steps, you can write a measure formula to compare current slicer seleciton and use with switch function to redirect current value to specific measure formula results.

Calculate table:

Selector= {"Measure1","Measure2","Measure3"}

Measure:

Measure =
SWITCH (
    SELECTEDVALUE ( Selector[Value] ),
    "Measure1", [Measure1],
    "Measure2", [Measure2],
    "Measure3", [Measure3],
    Sum(Table[Amount])
)

Regards,

Xiaoxin SHeng

amitchandak
Super User
Super User

@dkrishnan 

You can refer : https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/50...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Greg_Deckler
Community Champion
Community Champion

You need to use the Disconnected Table Trick as this article demonstrates: 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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