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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Saving values periodic to compare

Hi, 

 

(I'm new so sorry if I'm at the wrong place to ask this).

 

After some research I'm wondering if It is possible to do what I'm trying.  

I get data in Powerbi from a query/rest API.  What I am trying to do is to compare the sales data I collect and compare it to previous quarter. So I have for example a barchart with the current sales data by category. And now I want to compare that to last quarter. Is there a way to create a column that saves the current value of a quarter, so I can compare it? (Instead of comparing it by hand).

 

Thanks in advance!

1 ACCEPTED SOLUTION
7 REPLIES 7
amitchandak
Super User
Super User

@Anonymous , refer if this blog can help

Power BI — Qtr on Qtr with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-qtd-questions-time-intelligence-2-5-d842063da839
https://www.youtube.com/watch?v=8-TlVx7P0A0

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
CTozzi
Resolver I
Resolver I

@Anonymous , are you able to access the historical data? Could you explain how do you want to compare the sales, for example, Total Current Quarter VS Total Previous Quarter or Current Quarter to Date vs Total Previous Quarter or Same Period Previous Quarter?

Anonymous
Not applicable

@CTozzi, Thank you for your reply, I'm can't see the historical data. I want to compare Total current quarter with total last quarter. My problem comes from the fact I don't have last the values of last quarter. So for example if the total sales of current quarter is 1000, And last quarter was 995 I want to save the value 995 so I can compare them. The data I have will only show the current value (in this example 1000).  I hope this helps to clarify my question 😉 

 

Thanks again for your help!

@Anonymous are you able to export and save the data every quarter? Then you can create another file to combine the data and run the calculation?

Export the data: https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-export-data

Anonymous
Not applicable

@CTozzi That could be a solution indeed. I was wondering if there was a way to automize this proces within PowerBI. 

Thanks a lot!

Anonymous
Not applicable

That is great, thank you!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.