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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
TableuOldPBINew
New Member

Absolute Value Forecast Accuracy Rollup/down

Hi.  I am reaching out for help on how to properly calculate the absolute value ultimately at the item level but I would like the metric to continue to roll up/down through different categories.   In the table below the Act vs Fcst (ABS) values are at the month level which is the absolute value of the Act vs Fcst column.  This holds true at the total level where I would like to have the total be the sum of the months or level above.  (Act Total).  Any help would be greatly appreciated.

 

 

Month Act vs Fcst (ABS)  Act vs Fcst 
January                  716,970            (716,970)
February                  106,831            (106,831)
March                  337,249            (337,249)
April                  234,246            (234,246)
May                  214,143            (214,246)
June                  439,131            (439,131)
July                    70,752                 70,752
PBI Total              1,977,818        (1,977,818)
Act Total              2,119,322 

 

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi @TableuOldPBINew 

You can do this by writing a measure that sums Act vs Fcst (ABS) at the month level.

 

Below is an example of this sort of measure:

 

(From your description, I'm assuming Act vs Fcst (ABS) is a column. If it's a measure, replace the code in red with the measure name.)

 

Act vs Fcst (ABS) summed by month =
SUMX ( 
    VALUES ( YourTable[Month] ),
    CALCULATE ( SUM ( YourTable[Act vs Fcst (ABS)] ) )
)

Please try that out and post back if needed.

 

Regards,

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

View solution in original post

4 REPLIES 4
Nelgar_Martinez
Regular Visitor

Hi, I hope someone could help me.

 

I have a similar issue.

My database is vertical, so I have just one colunm for "Units" and other one with Type with two categories (Sales / Fcst).

how I can calculate the ABS variance with the right total?

 

thanks in advanced.

 

TableuOldPBINew
New Member

Thank you for the quick response.  I will give this a try.  Just curious will this work when a user uses the drill through option?

Realised I hadn't responded to your follow-up question.

It should work with drill-through if you are displaying the same measure, but post back if you have a specific scenario where results are not as expected.

Regards,

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn
OwenAuger
Super User
Super User

Hi @TableuOldPBINew 

You can do this by writing a measure that sums Act vs Fcst (ABS) at the month level.

 

Below is an example of this sort of measure:

 

(From your description, I'm assuming Act vs Fcst (ABS) is a column. If it's a measure, replace the code in red with the measure name.)

 

Act vs Fcst (ABS) summed by month =
SUMX ( 
    VALUES ( YourTable[Month] ),
    CALCULATE ( SUM ( YourTable[Act vs Fcst (ABS)] ) )
)

Please try that out and post back if needed.

 

Regards,

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.