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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
jbrown184
Helper I
Helper I

Convert Totals on Matrix to Average

Hi I am trying to Convert Totals on Matrix to Averages. The values is a count of specific column (Transactions). See below. How do I do this?

 

jbrown184_0-1706827610485.pngjbrown184_1-1706827623964.png

jbrown184_2-1706827656022.png

 

1 ACCEPTED SOLUTION

Hi,

Measure 2 can be simplifies to:

Measure 2 = AVERAGEX(GENERATE(VALUES('Location History'[Full Name]),VALUES('Location History'[Production Hour])),[Measure])

Hope this helps.

Ashish_Mathur_0-1707437686432.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

12 REPLIES 12
Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file. 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

How do I share a download link?

Upload the file to Google Drive and share the download link.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Access Denied message.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Okay you should be able to download it now.

Hi,

Try these measures

Measure = COUNT('Location History'[Transaction])
Measure 2 = if(HASONEFILTER('Location History'[Full Name]),if(HASONEFILTER('Location History'[Production Hour]),[Measure],AVERAGEX(VALUES('Location History'[Production Hour]),[Measure])),AVERAGEX(VALUES('Location History'[Full Name]),[Measure]))

Hope this helps.

Ashish_Mathur_0-1707347857233.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks! That worked! One more ask. Is there anyway to get the total (The one circled in Red) to be the average of everything from the left?

 

jbrown184_0-1707409699864.png

 

Hi,

Measure 2 can be simplifies to:

Measure 2 = AVERAGEX(GENERATE(VALUES('Location History'[Full Name]),VALUES('Location History'[Production Hour])),[Measure])

Hope this helps.

Ashish_Mathur_0-1707437686432.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thats amazing thanks!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @jbrown184 ,
Based on your description, I think your question is about the handling of hierarchies, you can use the ISFILTERED function to determine if you are affected by the hierarchy in which you are located, and thus use if judgments to differentiate between situations. You can refer to this article for better use of hierarchies:
Clever Hierarchy Handling in DAX - SQLBI
In the meantime you can also refer to this post for a reply
Solved: Changing TOTAL on a Matrix Visual from a SUM to an... - Microsoft Fabric Community
You can refer to this official document for more about ISFILTERED
ISFILTERED function (DAX) - DAX | Microsoft Learn

Best regards

Albert He

 

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors