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,
I was trying to test if I can rank rows based on their hierarchy level group using the isinscope function in a switch statement.
Initially I tested the following:
Solved! Go to Solution.
Hello @Nadim1313 ,
you should in reverse order. So if level one is above in a visual and level 2 is below, then use Level2, level 1
Test is in scope =
SWITCH(
TRUE(),
ISINSCOPE(DimProductSubcategory[ProductSubcategoryName]),
2,
ISINSCOPE(DimProductCategory[ProductCategoryName]),
1
)
Proud to be a Super User! | |
Great thanks! Works perfectly now
Hello @Nadim1313 ,
you should in reverse order. So if level one is above in a visual and level 2 is below, then use Level2, level 1
Test is in scope =
SWITCH(
TRUE(),
ISINSCOPE(DimProductSubcategory[ProductSubcategoryName]),
2,
ISINSCOPE(DimProductCategory[ProductCategoryName]),
1
)
Proud to be a Super User! | |
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 |
---|---|
144 | |
72 | |
62 | |
52 | |
48 |
User | Count |
---|---|
208 | |
89 | |
61 | |
59 | |
57 |