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.
I have a dataset that looks like this -->
Category | Brand | SKU | COGS |
Candy Bars | Chocolate King | 6oz | $ 1.50 |
Candy Bars | Chocolate King | 10oz | $ 2.00 |
Candy Bars | Crunchie Bar | 8oz | $ 1.85 |
Gum | Chewy Gum | Fruit Flavored | $ 0.50 |
Gum | Chewy Gum | Mint Flavored | $ 0.65 |
When returning the value for Cogs, I only want to display the value for the SKU level.
So in the matrix visual, right now it looks like this (using AVERAGE Dax formula) -->
Instead I only want this -->
Help?
Solved! Go to Solution.
@nj-matt , you can use isinscope and make the value blank when SKU is not in scope
example measure, where COGS is a measure too
if(not(isinscope(Table[SKU])), blank(), [COGS])
Refer this blog
https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/
@nj-matt , you can use isinscope and make the value blank when SKU is not in scope
example measure, where COGS is a measure too
if(not(isinscope(Table[SKU])), blank(), [COGS])
Refer this blog
https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/
That did it, thanks!
User | Count |
---|---|
21 | |
19 | |
12 | |
9 | |
8 |
User | Count |
---|---|
31 | |
27 | |
15 | |
13 | |
10 |