March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
First of all, my sincere apologies if I am creating this post in a wrong section as this is my first time creating one in this community page.
I was wondering if I can get some help calculating Variance for Forecast vs Actual report. As the name suggests, it is comparing company's Actual sales to what was forecasted. The fact table looks like this -
There is a column name RecordType that separates Actual and Forecast quantities. I was able to create weekly forecast vs actual page using matrix, but I am having hard time adding Variance in the matrix. Here is what the matrix looks like -
I am sorry if similar questions have been asked before, and I did see a few that has to do with calculating variance but I could not replicate the solutions.
Thank you
Solved! Go to Solution.
@Anonymous
You can use the row totals to disply the variance value. Replace the current SUM measure in the matrix with this measure
IF ( HASONEVALUE ( ForecastVsActual[RECORDTYPE] ),
[current sum measure], [vriance measure] )
@Anonymous
You can use the row totals to disply the variance value. Replace the current SUM measure in the matrix with this measure
IF ( HASONEVALUE ( ForecastVsActual[RECORDTYPE] ),
[current sum measure], [vriance measure] )
Hi @Anonymous
Usually it is just [Actual] - [Forcast_Inactive]
Am I missing something?
Hi @tamerj1 ,
I was able to create the following measures -
It works fine when the data is viewed in tabular format as a table -
However, I would like to display the variance in a Matrix right under the Forecast row -
Here is how the matrix is setup currently -
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
25 | |
18 | |
15 | |
9 | |
8 |
User | Count |
---|---|
37 | |
32 | |
18 | |
16 | |
13 |