Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi All,
I have a table, where the need the total of the Region column but need to exclude "Grand total" value from that sum. So just sum of anything before Grand Total.
Solved! Go to Solution.
Hi @mohiniverma2704
Good Day !
First go to create the rank desc order based on Index column after that you should remoe the rank 1 . rank 1 will apper in last row .
Try this calculation for your requitrements
Measure =Var _AA=
Hi @mohiniverma2704 ,
Thanks to @Thennarasu_R and @netanel for their quick replies. Please allow me to offer an alternative idea:
(1) This is my test data.
(2) We can create a measure.
MEASURE =
IF (
ISFILTERED ( 'Table'[Region] ),
SUM ( 'Table'[Value] ),
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER ( ALLSELECTED ( 'Table' ), [Region] <> "Grand total" )
)
)
Or if you are limited to excluding the last row, then we need to click on "transform data" to go to the power query and add an index column.
Then we can create a measure.
Measure 2 =
var _max_row=MAXX(ALL('Table'),[Index])
RETURN IF(ISFILTERED('Table'[Region]),SUM('Table'[Value]),CALCULATE(SUM('Table'[Value]),FILTER(ALLSELECTED('Table'),[Index] <> _max_row)))
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @mohiniverma2704 ,
Thanks to @Thennarasu_R and @netanel for their quick replies. Please allow me to offer an alternative idea:
(1) This is my test data.
(2) We can create a measure.
MEASURE =
IF (
ISFILTERED ( 'Table'[Region] ),
SUM ( 'Table'[Value] ),
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER ( ALLSELECTED ( 'Table' ), [Region] <> "Grand total" )
)
)
Or if you are limited to excluding the last row, then we need to click on "transform data" to go to the power query and add an index column.
Then we can create a measure.
Measure 2 =
var _max_row=MAXX(ALL('Table'),[Index])
RETURN IF(ISFILTERED('Table'[Region]),SUM('Table'[Value]),CALCULATE(SUM('Table'[Value]),FILTER(ALLSELECTED('Table'),[Index] <> _max_row)))
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @mohiniverma2704
Good Day !
First go to create the rank desc order based on Index column after that you should remoe the rank 1 . rank 1 will apper in last row .
Try this calculation for your requitrements
Measure =Var _AA=
Hi @mohiniverma2704
This one should work
Sum_Without_Grand_Total =
IF(
ISINSCOPE('Yure_Table'[SomeColumn]),
SUM('Yure_Table'[Amount]),
BLANK()
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
85 | |
65 | |
51 | |
45 |
User | Count |
---|---|
217 | |
88 | |
81 | |
65 | |
56 |