Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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()
)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
76 | |
61 | |
37 | |
33 |
User | Count |
---|---|
99 | |
56 | |
51 | |
42 | |
40 |