cancel
Showing results for
Did you mean:

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

1 ACCEPTED SOLUTION
Community Support

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])
)``````

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.

4 REPLIES 4
Community Support

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])
)``````

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.

New Member

Community Support

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

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:

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

New Member

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

Announcements

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors