Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
melanie-g
Frequent Visitor

Measure value changing

Hi there

 

I want to create a measure for PVR benchmark, that displays different values for the Grouping Level (see below screen shot).

 

The first category is State

The second category is Site

The third category is Product

 

Each product listed is either Luxury or Non Luxury.

If a product is Luxury, the benchmark should be $1000.

If a product is Non Luxury, the benchmark should be $350.

If you are looking at the Site or State result total, the benchmark should be $550.

 

So in my example below, if the products are Non Luxury, I want each product line to show $350 instead of $550. 

 

Any help would be appreciated.

 

Thanks. 

Melanie

 

melanieg_1-1659926883348.png

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@melanie-g , Based on what I got a new measure

 

A new measure =  Switch(True() ,

isinscope([Product Type]) && Max(Table[Product Type])= "Luxury" , 1000 ,

isinscope([Product Type]) && Max(Table[Product Type])= = "Non Luxury" , 350,

550)

 

 

How to use insinscope

IsInScope - Switch Rank at different levels: https://youtu.be/kh0gezKICEM

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@melanie-g , Based on what I got a new measure

 

A new measure =  Switch(True() ,

isinscope([Product Type]) && Max(Table[Product Type])= "Luxury" , 1000 ,

isinscope([Product Type]) && Max(Table[Product Type])= = "Non Luxury" , 350,

550)

 

 

How to use insinscope

IsInScope - Switch Rank at different levels: https://youtu.be/kh0gezKICEM

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.