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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Create varying category results based on a measure that calculates off of a slicer

Hi! I'm hoping someone can help me with this as I'm fairly new to PBI (and first time posting). Below top left is an example summary of a much larger table I have. I currently have a Customer Dashboard with all the usual data, but we also have a specific focus on Product. In addition to telling the customer their orders under a selected product group (slicer), we tell them what percent of their portfolio that is. To do this I created a measure that looks to the Product slicer for the numerator, but uses ALL on the denominator. After reviewing all customers for all product lines, categories of Gold, Silver, Bronze, and Below Threshold were created to say how a customer ranks among their peers. These rates differ by product (bottom left). What I now need to do is to have a table visual on the dashboard that shows the category results by year (bottom right). Fwiw, there are two other active slicers that will affect this visual called Period (01, 02, etc) and Market. As they have the same impact as the Customer slicer, I excluded them from the example table for space. I appreciate any help. Thanks!!

 

CWin4W_1-1703778513421.png

 

 

3 ACCEPTED SOLUTIONS
Ritaf1983
Super User
Super User

Hi @Anonymous 
It looks like you need to create a dynamic segmentation .

Please refer to the linked videos

https://www.youtube.com/watch?v=3BlTXhhbOro&t=10s

https://www.youtube.com/watch?v=QhUBmO14u0o&t=240s

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

Ashish_Mathur
Super User
Super User

Hi,

I have solved a similar question in the attached file.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

Anonymous
Not applicable

Hi @Anonymous ,

 

Based on the information you have provided, you can follow these steps:

1.Create a category table and create relationships.

vyifanwmsft_0-1703823587139.png

 

vyifanwmsft_1-1703823587141.png

 

 

2.Create a measure

 

Category =

SWITCH (

    SELECTEDVALUE ( 'Table'[Product] ),

    "PVM",

        IF (

            'Table'[product rate] >= 0.05,

            "Gold",

            IF (

                'Table'[product rate] >= 0.035,

                "Silve",

                IF ( 'Table'[product rate] >= 0.02, "Bronze", "Below Threshold" )

            )

        ),

    "400 Series",

        IF (

            'Table'[product rate] >= 0.15,

            "Gold",

            IF (

                'Table'[product rate] >= 0.12,

                "Silve",

                IF ( 'Table'[product rate] >= 0.10, "Bronze", "Below Threshold" )

            )

        )

)

 

Final output:

vyifanwmsft_2-1703823642748.png

 

vyifanwmsft_3-1703823642749.png

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Yifan Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @Anonymous ,

 

Based on the information you have provided, you can follow these steps:

1.Create a category table and create relationships.

vyifanwmsft_0-1703823587139.png

 

vyifanwmsft_1-1703823587141.png

 

 

2.Create a measure

 

Category =

SWITCH (

    SELECTEDVALUE ( 'Table'[Product] ),

    "PVM",

        IF (

            'Table'[product rate] >= 0.05,

            "Gold",

            IF (

                'Table'[product rate] >= 0.035,

                "Silve",

                IF ( 'Table'[product rate] >= 0.02, "Bronze", "Below Threshold" )

            )

        ),

    "400 Series",

        IF (

            'Table'[product rate] >= 0.15,

            "Gold",

            IF (

                'Table'[product rate] >= 0.12,

                "Silve",

                IF ( 'Table'[product rate] >= 0.10, "Bronze", "Below Threshold" )

            )

        )

)

 

Final output:

vyifanwmsft_2-1703823642748.png

 

vyifanwmsft_3-1703823642749.png

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Yifan Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thank you! I will try this out as soon as I get back to the office.

Ashish_Mathur
Super User
Super User

Hi,

I have solved a similar question in the attached file.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Thank you! I will try this out as soon as I get back to the office.

Ritaf1983
Super User
Super User

Hi @Anonymous 
It looks like you need to create a dynamic segmentation .

Please refer to the linked videos

https://www.youtube.com/watch?v=3BlTXhhbOro&t=10s

https://www.youtube.com/watch?v=QhUBmO14u0o&t=240s

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Anonymous
Not applicable

Thank you! I will try this out as soon as I get back to the office.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors