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
jimpatel
Post Patron
Post Patron

Not showing row or column total

Hi,

 

Thanks a lot for looking at my post. Thanks a lot for below code from this forum. 

 

I have  below measure and it does not show the total value . What should I do get the totals populated please?

 

Measure 5 = if(Var a = CALCULATE(MAX('table (2)'[Date]),ALLEXCEPT('table (2)','table (2)'[Order number],'table (2)'[Operation Description])) return MAXX( FILTER('table (2)','table (2)'[Date]=a),'table (2)'[Date]),1,0)
 
thanks a lot
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jimpatel ,

If I understand correctly, the issue is that you couldn’t show the total value. Please try the following methods and check if they can solve your problem:

1.The use of IF without an aggregation function for the context is likely the cause of the issue.

 

2.Modify the formula and enter the following DAX formula.

 

Measure 5 =
SUMX(
    VALUES('table (2)'[Order number]),
    VAR a = CALCULATE(MAX('table (2)'[Date]), ALLEXCEPT('table (2)', 'table (2)'[Order number], 'table (2)'[Operation Description]))
    RETURN IF(
        a = MAX('table (2)'[Date]),
        1,
        0
    )
)

 

 

Alternatively, you can select the matrix visual. Navigate to the Format section and expand the totals option.

vjiewumsft_0-1706148131161.png

 

If the above ones can’t help you get it working, could you please provide more raw data(exclude sensitive data) with Text format to make a deep troubleshooting? It would be helpful to find out the solution.

 

Looking forward to your reply.

Best Regards,

Wisdom Wu

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @jimpatel ,

If I understand correctly, the issue is that you couldn’t show the total value. Please try the following methods and check if they can solve your problem:

1.The use of IF without an aggregation function for the context is likely the cause of the issue.

 

2.Modify the formula and enter the following DAX formula.

 

Measure 5 =
SUMX(
    VALUES('table (2)'[Order number]),
    VAR a = CALCULATE(MAX('table (2)'[Date]), ALLEXCEPT('table (2)', 'table (2)'[Order number], 'table (2)'[Operation Description]))
    RETURN IF(
        a = MAX('table (2)'[Date]),
        1,
        0
    )
)

 

 

Alternatively, you can select the matrix visual. Navigate to the Format section and expand the totals option.

vjiewumsft_0-1706148131161.png

 

If the above ones can’t help you get it working, could you please provide more raw data(exclude sensitive data) with Text format to make a deep troubleshooting? It would be helpful to find out the solution.

 

Looking forward to your reply.

Best Regards,

Wisdom Wu

Perfect

 

Thanks a lot for you help 🙂

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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