Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 11 | |
| 9 | |
| 8 | |
| 8 |