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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.