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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Measure Missing Sub Total and Total Data in Table

Hi all,

 

I've created a measure and correctly have the Metric values but some of the sub totals aren't showing any values.

 

I've noticed the total correctly calculates when the Activities[Measure Value] (green cross) and Activities[Attendance Value] are separated (red cross) column but not when they are combined, i.e. should be sum together (blue cross)

I've used the HASONEFILTER which I read about here, but to no success.

Any help would be greatly appreciated - thanks!

 

Metric Measure = 
IF(HASONEFILTER(Activities[Measure ID]),
DIVIDE(AVERAGE('Activities'[Measure Value]) + AVERAGE('Activities'[Attendance Value]),2),
SWITCH(SELECTEDVALUE('Measure'[Mechanism]),
"Survey Completion",
AVERAGE(Activities[Measure Value]),
"Workshop Attendance",
AVERAGE(Activities[Attendance Value])))

 

mccardj_1-1658107657942.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

Please create another new measure as below to replace the original measure [Metric Measure] , and put this new measure onto the matrix visual. Later check if it can get your expected result.

New Measure =
SUMX (
    GROUPBY (
        'Activities',
        'Activities'[Phase],
        'Activities'[Metric],
        'Activities'[Measure]
    ),
    [Metric Measure]
)

In addition, you can refer the following links to try to solve your problem...

Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand

Dax for Power BI: Fixing Incorrect Measure Totals

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

It worked! Thanks so much for your help

Anonymous
Not applicable

Hi @Anonymous ,

Please create another new measure as below to replace the original measure [Metric Measure] , and put this new measure onto the matrix visual. Later check if it can get your expected result.

New Measure =
SUMX (
    GROUPBY (
        'Activities',
        'Activities'[Phase],
        'Activities'[Metric],
        'Activities'[Measure]
    ),
    [Metric Measure]
)

In addition, you can refer the following links to try to solve your problem...

Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand

Dax for Power BI: Fixing Incorrect Measure Totals

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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