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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Difference between monthly forecast and daily sales

I have 2 tables. One table containing information about my sales (on a daily basis) and one table containing forecast (on a monthly basis). My end goal is to be able to easliy create a top 5 chart for a certain product or certain customer and time-period (could be one month or more) where sales > forecast or sales < forecast.

 

For this I assume I will need to make a new table and I've created an example in excel of what I need, however I do not know how to apply this in power BI (I assume to create a new table using DAX, but I don't know where to begin).

 

Picture of my goal 

2 REPLIES 2
Anonymous
Not applicable

Solution attached. Always make sure the product table contains all products in Sales and Forecast and that the Customer dimension contains all customers from Sales and Forecast as well. The Time dimension must be a proper Date table covering all the years found in the fact tables in full.

 

Best

D

Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

Try these articles

https://www.daxpatterns.com/budget-patterns/
https://www.daxpatterns.com/handling-different-granularities/

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.