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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Walden2001
Frequent Visitor

Using 2 selected variables to calculate differences them

I have a dataset that contains plant, material, staff and accommodation costs for different cost scenarios.  I want to be able to allow users to be able select one scenario (say Quarter1 High) from a dropdown list and a second scenario (say Q4 Low) from another drop down list. I would then like to able to dymanically calculate the differences in cost for these scenario elements and display the 2 scenario costs and differences in a table. 

 

I have done it before using min and max Var but I can't here as there is no min and max as I want users to be able to calculate Q4Low minus Q1 High or Q1 High minus Q4 Low depending on what they select first. I'm sure there is a good way to do it but I just can't figure it out at the moment. 

 

I hope this makes sense, if not then please let me know.

 

All ideas welcome

 

Jamie 🙂

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi @Walden2001 

You could get it by this way:

https://www.sqlbi.com/articles/filtering-and-comparing-different-time-periods-with-power-bi/

 

By the way, this blog use two period date slicer to compare, you could just use dropdown list too.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi @Walden2001 

You could get it by this way:

https://www.sqlbi.com/articles/filtering-and-comparing-different-time-periods-with-power-bi/

 

By the way, this blog use two period date slicer to compare, you could just use dropdown list too.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

@Walden2001, if the are two slicers filtering the same column. You need one from disconnected table. refer this example of date. In place of date you will have qtr

https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

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

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.