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
Krishnanidar
New Member

Need help on creating custom row grand total in power BI desktop

Hi Team,

 

Pls help on creating custom row grand total in power BI desktop. Breaking my head for the entire day

 

Thanks in advance

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Krishnanidar ,

 

Are you referring to the difference between measure and sum of value?

This is because I am customizing the rule, The Total row shows the synthesis of month 3 or less than or equal

If you want Masure's Total row to display the total value, you can use the following formula:

Measure =
IF(
    ISINSCOPE('Table'[Date]),MAX('Table'[Value]),
    SUMX(ALL('Table'),[Value])
        )

vyangliumsft_0-1686729617192.png

 

Best Regards,

Liu Yang

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

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi  @Krishnanidar ,

 

Are you referring to the difference between measure and sum of value?

This is because I am customizing the rule, The Total row shows the synthesis of month 3 or less than or equal

If you want Masure's Total row to display the total value, you can use the following formula:

Measure =
IF(
    ISINSCOPE('Table'[Date]),MAX('Table'[Value]),
    SUMX(ALL('Table'),[Value])
        )

vyangliumsft_0-1686729617192.png

 

Best Regards,

Liu Yang

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

Krishnanidar
New Member

@Anonymous 

 

Thanks in advance

Anonymous
Not applicable

Hi  @Krishnanidar ,

I created some data:

You mean whether you want to customize the Total row of the table Visual, you can use the IF() and Isinscope() functions to determine whether it is a Total row

IF function (DAX) - DAX | Microsoft Learn

ISINSCOPE function (DAX) - DAX | Microsoft Learn

vyangliumsft_0-1686283517734.png

Custom rules:

The Total row shows the synthesis of month 3 or less than or equal

 

Here are the steps you can follow:

1. Create measure.

Measure =
IF(
    ISINSCOPE('Table'[Date]),MAX('Table'[Value]),
    SUMX(
        FILTER(ALL('Table'),MONTH('Table'[Date]) <=3),[Value])
        )

2. Result:

vyangliumsft_1-1686283517735.png

 

Best Regards,

Liu Yang

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

Hi @Anonymous 

 

But when i am dragging in matrix as below showing different values. 

Krishnanidar_0-1686301084388.png

 

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