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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
ngn_marie05
Frequent Visitor

Select a column in a table with a slicer

Hi everyone, 

 

It sounds silly, but I have been looking on many forums and I can't find the answer.

I have a table with many columns: Delivery Date, Order Date, Delivery Hour, Order Hour, Turnover... 

 

I would like to create a simple bar chat with the hour in X Axis and use the turnover as a value. But it would depend on the selected value: Delivery or Order. 

 

Capture d’écran 2022-10-12 144341.png

 

I tried to create a measure by using "Switch", to add a column... but it doesn't work. Or maybe I'm doing it in the wrong way.

Thank you so much for your help! 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ngn_marie05 , Create field parameter on both dates and use that on axis

https://amitchandak.medium.com/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9af...

 

 

Option two, Join both of them with the same date table and you will have inactive join. Create a measure using userelationship to active the join - refer: https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

 

Create two measures and then again use field parameter to switch measure but axis will fixed, date table's date

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@ngn_marie05 , Create field parameter on both dates and use that on axis

https://amitchandak.medium.com/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9af...

 

 

Option two, Join both of them with the same date table and you will have inactive join. Create a measure using userelationship to active the join - refer: https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

 

Create two measures and then again use field parameter to switch measure but axis will fixed, date table's date

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

Thank you very much for your help!!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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
Top Kudoed Authors