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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
PBIMorgan01
Regular Visitor

Slicer using multiple field

Hello, 

I need to have a slicer with  options : X and Y. 

 

I have a table like this :

Name

Transport

Network

A

Toto

1

B

Tata

1

C

Toto

3

 

X : if transport = Toto

Y : if Network = 1

 

But, if I use IF loop I have this :

 

Name

Transport

Network

Slicer

A

Toto

1

X,Y

B

Tata

1

Y

C

Toto

3

X

 

So, I can't use that in slicer. I would like only two choices and for A crossjoin in order to display A,B or B,C according to my filter.

 

Do you have any idea to do that ? 

 

Thanks in advance

 

2 ACCEPTED SOLUTIONS
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @PBIMorgan01 ,

Please try the way below.

Firstly unpivot Transport and Network columns in Query Editor.

Then create the calculated column like below.

Column = IF('Table'[Value]="Toto","X",IF('Table'[Value]="1","Y"))

Capture.PNG

Then you could use column as a slicer.

Best  Regards,

Cherry

 

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

v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @PBIMorgan01 ,

Have you solved the problem?

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

If you still need help, please feel free to ask.

Best  Regards,

Cherry

 

Community Support Team _ Cherry Gao
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-piga-msft
Resident Rockstar
Resident Rockstar

Hi @PBIMorgan01 ,

Have you solved the problem?

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

If you still need help, please feel free to ask.

Best  Regards,

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @PBIMorgan01 ,

Please try the way below.

Firstly unpivot Transport and Network columns in Query Editor.

Then create the calculated column like below.

Column = IF('Table'[Value]="Toto","X",IF('Table'[Value]="1","Y"))

Capture.PNG

Then you could use column as a slicer.

Best  Regards,

Cherry

 

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.