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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
jamesgregory589
New Member

Aggregation Issue

location and product codelocationproductSales forecast
abc- 1234abc12347585
def-5678def56788280
ghi-9101ghi91017778

 

I am trying to get a forecast accuracy by shipping location and product. Currently we have been trying to make a measure to take the absolute variance of the sales and the forecast and then using the equation below to calculate the forecast accuracy. It seems to punch out the right numbers in the table view, but when I go to the report view I am having a bunch of aggregation issues. How do I manage this to do it at the levels I want it ?

 

IF([ Abs Variance]>[sales],0,

    IF([Abs Variance] = 0,1, 1- [ Abs Variance]/[Sales]))

 

1 REPLY 1
speedramps
Super User
Super User

You have not provided sufficient information.
Eg what are the  [ABS Variance] and [Sales]  measures.

 

Please provide the input date.

The expected output reports.

And the dax measures

 

However, it sounds like you might not be using SUMX to compute aggregations

 

please click thumbs up and accept as solution.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.