Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi All,
I want to exclude the marked dimension and get the total as 42413 as markd in snap
please give your thoughts, I tried with
Solved! Go to Solution.
HI @Raveeshlokanath,
You can add a if statement to check the current row contents level with isinscope function and replace not matched levels.
formula =
IF ( ISINSCOPE ( QLTY_TR_DETAILS_All_Padded[Category] ), [TRs] )
Clever Hierarchy Handling in DAX - SQLBI
ISINSCOPE function (DAX) - DAX | Microsoft Learn
Regards,
Xiaoxin Sheng
HI @Raveeshlokanath,
You can add a if statement to check the current row contents level with isinscope function and replace not matched levels.
formula =
IF ( ISINSCOPE ( QLTY_TR_DETAILS_All_Padded[Category] ), [TRs] )
Clever Hierarchy Handling in DAX - SQLBI
ISINSCOPE function (DAX) - DAX | Microsoft Learn
Regards,
Xiaoxin Sheng
@Raveeshlokanath - it looks like you have named the whole dimension table in your ALL( ) rather than just the column, you can try:
CALCULATE([TRs],ALL('QLTY_TR_DETAILS_All_Padded'[Column]))
Just replace the word Column in my code with the column in your visual.
If you are applying a filter to that column already, you may need to use ALLSELECTED( ) instead.
If this works, please accept as a solution.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
22 | |
17 | |
17 | |
11 | |
7 |
User | Count |
---|---|
27 | |
26 | |
13 | |
12 | |
12 |