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 a Slicer based on data from 2 columns

Hello All,

 

I would like to create a slicer which will be based on 2 columns. For example sample data and how the slicer should look like is shown below.

 

Sample data:

 

 Type AType B
Sydney10010
Tokyo20080
SF30020
NYC23020
LA5005

 

Slicer: will be based on columns "Type A" and "Type B" such that when I select "Type A" it will display the values for all the cities for type A. If I select "Type B" it should display values of cities for type B and if i select both "Type A" and "Type B" then it should sum the values. Scenarios outlined below:

 

Scenario 1: Type A selected

 

Slicer
Type A - selected
Type B

 

Table will display:

 

 Type
Sydney100
Tokyo200
SF300
NYC230
LA500

 

Scenario 2: Same  as scenario 1 when type B is  selected.

 

Scenario 3: when both Type A and Type B are selected

Slicer
Type A - selected
Type B - selected

 

Table shows:

 

 Type
Sydney110
Tokyo280
SF320
NYC250
LA505

 

Thanks in advance!

1 ACCEPTED SOLUTION
FrankAT
Community Champion
Community Champion

Hi @Anonymous ,

you can do it like this:

 

29-07-_2021_23-19-28.gif

Take a look at the attached PBIX file.

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

View solution in original post

1 REPLY 1
FrankAT
Community Champion
Community Champion

Hi @Anonymous ,

you can do it like this:

 

29-07-_2021_23-19-28.gif

Take a look at the attached PBIX file.

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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