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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.