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
Chanleakna123
Post Prodigy
Post Prodigy

Average YTD of each Categories in Each Month

2.PNG

 

hi , how can i use the YTD Average Calculation as per each categories ? 
now it sum up all number , this is not what i expect. 

can you help me ? 

 

6 REPLIES 6
v-qiuyu-msft
Community Support
Community Support

Hi @Chanleakna123,

 

Would you please clarify "YTD Average Calculation as per each categories"?  It would be better if you could share some sample data and show corresponding desired results. 

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hi , 

 

below is AVR YTD calculation . 

QSPEC CalculationsYTD JanFeb
DOI Finished Goods11.509.1613.85
Manufacturing Cost Per Unit Case0.160.190.13
DTF (Distribution,Transportation and Fleet) Cost per phys Case sold 0.190.190.19

Hi @Chanleakna123,

 

Do you mean to get average value of YTD (11.50 +0.16+ 0.19)3? If it is, you can create a measure below: 

 

AVETotal= AVERAGEX(SUMMARIZE('table',[QSPEC Calculations],"t",YTD),[t])

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-qiuyu-msft1.PNG2.PNG

 

you see my excel file YTD , Jan , Feb , 

and the YTD Calculation is =AVERAGE(D52:E52)   

i only need horizontal calculation of Jan + Feb , it's like YTD Average. 

and my purpose is to get my excel file like the file in BI i used 

but i failed to the total YTD Average of Horizon of each KPI , 

 

Hi @v-qiuyu-msft 

 

i used below calculation , and the result turn zero. 

do i make some mistake here ? Kindly let me know 

 

average_ytd =
AVERAGEX(SUMMARIZE(Metrics,Metrics[Data Input],"Total TY",[YTD]),[Total TY])

 

1.PNG

@v-qiuyu-msft hi , still i didn't get the solution on this calculation. 

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.