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

Total Sum as per different matrix selection

Total should be display (200+270=470) but it is not coming correct. if i select value from all for matrix (300+270+122+200 then it is display correct sum(like 892). if i select three matrix value then sum of three matrix value .only for all matrix selection it is working fine.For 1,2 ,3 matrix selection is not working.I need sum as per matrix selection.  please see below image.

 

Sgang_1-1607621006527.png

 

 

 

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

I did the following measure:

Total =
IF (
    ISFILTERED ( Table_1 ) || ISFILTERED ( Table_2 )
        || ISFILTERED ( Table_3 )
        || ISFILTERED ( Table_4 );
    IF ( ISFILTERED ( Table_1[Week] ); SUM ( Table_1[Value] ); 0 )
        + IF ( ISFILTERED ( Table_2[Week] ); SUM ( Table_2[Value] ); 0 )
        + IF ( ISFILTERED ( Table_3[Week] ); SUM ( Table_3[Value] ); 0 )
        + IF ( ISFILTERED ( Table_4[Week] ); SUM ( Table_4[Value] ); 0 );
    SUM ( Table_1[Value] ) + SUM ( Table_2[Value] )
        + SUM ( Table_3[Value] )
        + SUM ( Table_4[Value] )
)

 

asically I'm checking if there is any matrix that is filtered if yes I only pickup the filtered values if none is filter I sum all the values.

 

Check PBIX file attach:

MFelix_0-1608030917712.png

 


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Thanks MFelix, This measure is working fine . I replaced semicolon to comma.

I have one more question-I can't find any option to attach my pbxt file in community.

Hi @Anonymous ,

 

The option to attach file is only for some specific group users but you can use a onedrive, google drive, we transfer or similar link to upload your files.

 


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

All matrix values are coming from different four table .

 

Hi MFelix,

All matrix values are coming from different four table .

For testing, I created measure using isfiltered but  it is not working for signle matrix  and  How can I put two isfiltered condition in this measure . If i want to select two phase I and 2 then it will display two phase sum.

 

Hi @Anonymous ,

 

I did the following measure:

Total =
IF (
    ISFILTERED ( Table_1 ) || ISFILTERED ( Table_2 )
        || ISFILTERED ( Table_3 )
        || ISFILTERED ( Table_4 );
    IF ( ISFILTERED ( Table_1[Week] ); SUM ( Table_1[Value] ); 0 )
        + IF ( ISFILTERED ( Table_2[Week] ); SUM ( Table_2[Value] ); 0 )
        + IF ( ISFILTERED ( Table_3[Week] ); SUM ( Table_3[Value] ); 0 )
        + IF ( ISFILTERED ( Table_4[Week] ); SUM ( Table_4[Value] ); 0 );
    SUM ( Table_1[Value] ) + SUM ( Table_2[Value] )
        + SUM ( Table_3[Value] )
        + SUM ( Table_4[Value] )
)

 

asically I'm checking if there is any matrix that is filtered if yes I only pickup the filtered values if none is filter I sum all the values.

 

Check PBIX file attach:

MFelix_0-1608030917712.png

 


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



MFelix
Super User
Super User

Hi @Anonymous ,

 

Are the values on the matrix visualizations being picked up from diferrent table or is it all in the same table?

How do you have the sum setup?

How do the matrix visualizations interact between them and with the card?

 

Believe that your issue is related with the way you have the information and the visualizations setup.

 

If all the visualizations are coming from the same table but with different filters you may be getting context erros in the calculations so not return any values or incorrect.

 

Can you share a mockup file?


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



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