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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Calculate monthly data accuracy

Dear gurus

 

I am facing the following challenge to calculate data accuracy for aggregate of products and time buckets

 

My data source has the following structure

ItemDescriptionItem groupDimensionyearmonthquantity
abcabc_descgroup 1Actuals202210512
abcabc_descgroup 1Forecast202210500
abcabc_descgroup 1Actuals20229485
abcabc_descgroup 1Forecast20229400
cdecde_descgroup 1Actuals2022925
cdecde_descgroup 1Forecast2022920
efgefg_descgroup 2Actuals202284000
efgefg_descgroup 2Forecast202283750
ghighi_descgroup 2Actuals20228800
ghighi_descgroup 2Forecast20228925

 

I would need to calculate the accuracy per month and item group, i.e the result should me

 

 2022_08
Item groupActualsForecastFCA
group 1Σ all actuals of group 1 in month 08Σ all Forecast of group 1 in month 08Average of (Fcast - actual)/(Forecast+actual) calculated at item level for all items of group 1
group 2Σ all actuals of group 2 in month 08Σ all Forecast of group 2 in month 08Average of (Fcast - actual)/(Forecast+actual) calculated at item level for all items of group 2

 

the calculation should be for all months that are selected via a slicer. 

 

Am struggling with the sum and how to reflect in different months, anyone has a suggestion on how to build the file?

 

thanks a lot

1 ACCEPTED SOLUTION
djurecicK2
Super User
Super User

Hi @Anonymous ,

 This might help get you started- create a measure for actuals and a measure for forecast.

 

Actuals= CALCULATE(SUM(Tablename[quantity]), FILTER(Tablename,Tablename[Dimension]="Actuals"))

Forecast= CALCULATE(SUM(Tablename[quantity]), FILTER(Tablename,Tablename[Dimension]="Forecast"))

 

Then add a matrix visual and put item group in the Rows and Actuals and Forecast in the Values. You can add a filter to the matrix to select a particular month. You could also add Month to the matrix Columns.

View solution in original post

1 REPLY 1
djurecicK2
Super User
Super User

Hi @Anonymous ,

 This might help get you started- create a measure for actuals and a measure for forecast.

 

Actuals= CALCULATE(SUM(Tablename[quantity]), FILTER(Tablename,Tablename[Dimension]="Actuals"))

Forecast= CALCULATE(SUM(Tablename[quantity]), FILTER(Tablename,Tablename[Dimension]="Forecast"))

 

Then add a matrix visual and put item group in the Rows and Actuals and Forecast in the Values. You can add a filter to the matrix to select a particular month. You could also add Month to the matrix Columns.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors