Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |