The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
21 | |
18 | |
17 | |
13 |
User | Count |
---|---|
41 | |
38 | |
24 | |
20 | |
20 |