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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
zraopingm
Helper IV
Helper IV

average from list of a measure

Hello, 

below image where CURR_MTH_EXP = TOTAL EXP(MeasureA) - PRIOR MONTH EXP (MeasureB)

2M in the card is the total exp for the past no of months in the table.

Is there a way I can change the total of 2M in the card to Average month exp based on table?

and of course, months could be days or hours.

Thank you

Zoey

zraopingm_0-1730142038059.png

 

 

4 REPLIES 4
Anonymous
Not applicable

Thank you Greg_Deckler and ryan_mayu

Hi, @zraopingm 

First you can create a date slicer as follows:

vjianpengmsft_0-1730268750564.png

Then create a quick measure:

vjianpengmsft_1-1730268869587.png

vjianpengmsft_2-1730268939373.png

The results are as follows:

vjianpengmsft_3-1730268981227.png

vjianpengmsft_4-1730269053673.png

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

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

 

 

ryan_mayu
Super User
Super User

maybe you can try this

= averagex(values(CY_MONTH),  CURR_MTH_EXP)





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Greg_Deckler
Super User
Super User

@zraopingm This looks like a measure aggregation problem. See my blog article about that here: https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149

The pattern is:
MinScoreMeasure = MINX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
MaxScoreMeasure = MAXX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
AvgScoreMeasure = AVERAGEX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
etc.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Thank you, I am just looking for if there is a quick way to submarize by card with the total, or average on a range of data derived from a measure. 

Zoey

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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