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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
AaronGlenn10
Helper III
Helper III

How to average a measure across a group

All Stars:

 

Trying to take an average of a calculated measure across a group.  The calculated measure is a YTD % delta - 'TABC'[YTD_%_Delta] over previous year's YTD, and the group is a group of cities - 'TABC'[location_city(groups)]

 

Thank you!

 

~AGS

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @AaronGlenn10 

Please correct me if I wrongly understood your question.

Please try the below.

 

newmeasure = averagex (values ('TABC'[location_city(groups)]), [your measure])

 

Or, if it is OK with you, please share your sample pbix file's link, then I can try to come up with a more accurate measure.

 

Thank you.

 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi, @AaronGlenn10 

Please correct me if I wrongly understood your question.

Please try the below.

 

newmeasure = averagex (values ('TABC'[location_city(groups)]), [your measure])

 

Or, if it is OK with you, please share your sample pbix file's link, then I can try to come up with a more accurate measure.

 

Thank you.

 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Thank you.  I think this is on the right path, but it's returning a huge #. I need to calculate on a yearly basis and I think it's calculating across all years.  Do I need to add some sort of date parameter?

 

~AGS

Hi, @AaronGlenn10 

Thank you for your feedback.

Without seeing the sample pbix file, it is difficult for me to tell.

Is your year-filter doing something on the report page? Or, do you just want a specific year's result?

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors