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
hideakisuzuki01
Helper II
Helper II

Calculate differences between budget versions

Hi there

I have yearly budget/forecast data, and we have a new version every 3 months. For example, 

 

Year,   Version,   Amount

2021,  20-11,     $1200

2021,  21-02,     $1000

2021,  21-05,      $1100

 

And I want users to choose two versions and display the differences in a bar chart.  It would be great if the users can choose versions using slicers but I dont know if that is possible.

If there are ways other than using slicers then that works too.  

 

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

Hi @hideakisuzuki01 ,

 

You can create two new slicer table:

 

slicer1 = SELECTCOLUMNS('Table',"Year",'Table'[Year],"Version",'Table'[Version])
slicer2 = slicer1

 

Then you can create two measure:

 

Measure = CALCULATE(SUM('Table'[Amount]),FILTER('Table','Table'[Version] in VALUES(slicer2[Version])))

Measure1 = CALCULATE(SUM('Table'[Amount]),FILTER('Table','Table'[Version] in VALUES(slicer1[Version])))

 

1.gif

 

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

 

Best Regards,

Dedmon Dai

View solution in original post

2 REPLIES 2
v-deddai1-msft
Community Support
Community Support

Hi @hideakisuzuki01 ,

 

You can create two new slicer table:

 

slicer1 = SELECTCOLUMNS('Table',"Year",'Table'[Year],"Version",'Table'[Version])
slicer2 = slicer1

 

Then you can create two measure:

 

Measure = CALCULATE(SUM('Table'[Amount]),FILTER('Table','Table'[Version] in VALUES(slicer2[Version])))

Measure1 = CALCULATE(SUM('Table'[Amount]),FILTER('Table','Table'[Version] in VALUES(slicer1[Version])))

 

1.gif

 

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

 

Best Regards,

Dedmon Dai

amitchandak
Super User
Super User

@hideakisuzuki01 , In this case, you need two independent tables with version or version and year. Then you need to use them to filter data to compare.

 

refer to my date range blog on a similar topic

 

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

 

New table 1 = summarize(Table, [Year], [Version])

New table 2 = summarize(Table, [Year], [Version])

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
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!

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.