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

The Fabric Community site will be in read-only mode on Monday, Feb 24 from 12:01 AM to 8 AM PST for scheduled upgrades.

Reply
SagarVIS96
Regular Visitor

How to calculate QTD and YTD average

Hey folks,

I have an requirement where I need to get average of daily data and based on the average daily data I need to find Quarter to Date(QTD) average of all daily data. Please let me know if you have any idea about this.

 

Thanks

1 ACCEPTED SOLUTION
v-angzheng-msft
Community Support
Community Support

Hi, @SagarVIS96 

 

Try to create measures as following:

QTD_sum = 
TOTALQTD(SUM(Table2[Sale]),'Table2'[Date])
QTD_avg = 
TOTALQTD(AVERAGE(Table2[Sale]),'Table2'[Date])

Result:

vangzhengmsft_0-1648189364564.png

Please refer to the attachment below for details.

Hope this helps.

 

 

Best Regards,
Community Support Team _ Zeon Zheng


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-angzheng-msft
Community Support
Community Support

Hi, @SagarVIS96 

 

Try to create measures as following:

QTD_sum = 
TOTALQTD(SUM(Table2[Sale]),'Table2'[Date])
QTD_avg = 
TOTALQTD(AVERAGE(Table2[Sale]),'Table2'[Date])

Result:

vangzhengmsft_0-1648189364564.png

Please refer to the attachment below for details.

Hope this helps.

 

 

Best Regards,
Community Support Team _ Zeon Zheng


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Whitewater100
Solution Sage
Solution Sage

Hi:

When all the sales are added up for a quarter, that is that quarters average. If you have six months of sales it is that total of all sales / 2.  Please see attached. Having a Date Table really helps with this type of work.

https://drive.google.com/file/d/1ZuYiO9V6oYiJ0biFY2bvc47EaB38t3Q6/view?usp=sharing 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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