Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
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.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
24 | |
21 | |
18 | |
14 | |
11 |
User | Count |
---|---|
44 | |
35 | |
25 | |
22 | |
22 |