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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
avivbnbn
Frequent Visitor

change the totals to avg

Hi, how can i change the total in the right to avg and not to sum? 

avivbnbn_0-1712498935695.png

 

1 ACCEPTED SOLUTION
tharunkumarRTK
Solution Sage
Solution Sage

@avivbnbn 

You can use create another measure and follow this pattern:

NewPercentageresponded = 
if(Hasonevalue(Date[Year]), [Percentage respond], Averagex(Values(Date[Year]), [Percentage respond]))

If the post helps please give a thumbs up


If it solves your issue, please accept it as the solution to help the other members find it more quickly.


Tharun

 

View solution in original post

5 REPLIES 5
avivbnbn
Frequent Visitor

thank you! can you explain me the logic behind the formula? 

Greg_Deckler
Super User
Super User

@avivbnbn To add to @tharunkumarRTK's information, First, please vote for this idea: https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e

This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

Also: https://youtu.be/uXRriTN0cfY
And: https://youtu.be/n4TYhF2ARe8 


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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
tharunkumarRTK
Solution Sage
Solution Sage

@avivbnbn 

You can use create another measure and follow this pattern:

NewPercentageresponded = 
if(Hasonevalue(Date[Year]), [Percentage respond], Averagex(Values(Date[Year]), [Percentage respond]))

If the post helps please give a thumbs up


If it solves your issue, please accept it as the solution to help the other members find it more quickly.


Tharun

 

but now i have more columns.

avivbnbn_0-1712500341253.png


i want the same result as i posted but different total

You can remove your actual measure from the visual now. 

 

or if you dont want to remove it then modify your actual measure by following the logic I shared

 


If the post helps please give a thumbs up


If it solves your issue, please accept it as the solution to help the other members find it more quickly.


Tharun

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.