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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
dpombal
Post Patron
Post Patron

Create a new measure/column that given a selection in a slicer filter in other 2 fields

Given this initial customer dataset, I would like to have a single slicer on my report  for customer Type

 

TypeIntervalStatusCustomerCount
Low Performance>90ShippedA50
Low Performance>90ShippedB80
Low Performance0-90CancelledC60
Low Performance>90CancelledD40
Low Performance>90ShippedE30
Low Performance0-90ShippedF10
Regular>90CancelledG200
Regular0-90ShippedH150
Regular0-90ShippedI150
Vip0-90ShippedJ500
Vip0-90ShippedK800
Vip>90SentL700
Vip>90ShippedM700

 

 

There is a single selection unique for customer type and as I show in previous values,

 IF SELECTED Type==Low Performance -->  Filter by Cancelled AND >90
 IF SELECTED Type==VIP --> Filter by  0-90  AND Shipped
 IF SELECTED Type==Regular -->  Filter by  0-90  AND Shipped

 

 

Here it is a the report pbix as demo

https://1drv.ms/u/s!Am7buNMZi-gwi3obfmZBgQ5yeIQ2

Low Performance Customers and filtersLow Performance Customers and filters

Vip customers and filtersVip customers and filters

regular customers and filtersregular customers and filters

1 ACCEPTED SOLUTION
v-jiascu-msft
Employee
Employee

Hi @dpombal,

 

You can add a new calculated column. Then create a slicer with it.

 

ForSlicer =
IF (
    [Type] = "Low Performance"
        && [Status] = "Cancelled"
        && [Interval] = ">90",
    "Low Performance",
    IF (
        [Type] = "VIP"
            && [Interval] = "0-90"
            && [Status] = "Shipped",
        "VIP",
        IF (
            [Type] = "Regular"
                && [Interval] = "0-90"
                && [Status] = "Shipped",
            "Regular",
            BLANK ()
        )
    )
)

Create a new measurecolumn that given a selection in a slicer filter in other 2 fields.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

Community Support Team _ Dale
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

2 REPLIES 2
v-jiascu-msft
Employee
Employee

Hi @dpombal,

 

Could you please mark the proper answer as solution or share the solution if it's convenient for you? That will be a big help to the others.

 

Best Regards!
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jiascu-msft
Employee
Employee

Hi @dpombal,

 

You can add a new calculated column. Then create a slicer with it.

 

ForSlicer =
IF (
    [Type] = "Low Performance"
        && [Status] = "Cancelled"
        && [Interval] = ">90",
    "Low Performance",
    IF (
        [Type] = "VIP"
            && [Interval] = "0-90"
            && [Status] = "Shipped",
        "VIP",
        IF (
            [Type] = "Regular"
                && [Interval] = "0-90"
                && [Status] = "Shipped",
            "Regular",
            BLANK ()
        )
    )
)

Create a new measurecolumn that given a selection in a slicer filter in other 2 fields.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.