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
Devtr
Helper III
Helper III

Find the difference of the revenue from the available previous date in the current row - in Matrix

I have a daily report that has history and forecast data for the hotel. This report has the current year and next years' data. The fields are report_date, history_forecast_date, total_revenue, occupancy, and ADR.

In the Power Bi desktop, I have Matrix visual. It has filters for the year (based on history_forecast_date) and report date (based on report_date). It shows data in months:

Devtr_0-1662917839072.png

How do I find the difference between total revenue for each report_date?

This is for both years being selected. Users can select a single year as well.

Like:

Devtr_2-1662919186415.png

I tried using the quick measure. I couldn't find the solution.

I am not well experienced with a calculated column using DAX.

 

This is possible in an Excel pivot table. For total_revenue field, We can go to Value Field Settings -> Show Value as (select Different from) -> Base field (select report_date) -> Base Item (select previous).

I have the link below for the Excel file for it. Instead of having two years' worth of data for each day, I have included the total of each month of the year.

Excel file 

 

Thank you for your help.

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You may refer to my solution in this PBI file.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Devtr
Helper III
Helper III

Thank you, Ashish.

Appreciate your time.

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ashish_Mathur
Super User
Super User

Hi,

You may refer to my solution in this PBI file.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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