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
Anonymous
Not applicable

Conditional Column

Hello I want to add a conditional column based off the information below. The conditional column would be for the stores in column B. So for instance if Column B = Orange then Target. My issue is that I want column B to be a slicer but I have apples in 2 tables ( Walmart and Wholefoods). 

How can I create it so that if Column A = Apple than Walmart 

and also show that if column A = Apple than Wholefoods

 

I need it to show once I select wholefoods in the Slicer I see apple and once I select Walmart in the slicer I also see apple without combining the 2 names. 

Csmith31_0-1628551861750.png

2 ACCEPTED SOLUTIONS
ChrisMendoza
Resident Rockstar
Resident Rockstar

I'm not quite sure I understand. From what I see you need to unpivot your 'Store' table so it looks like:

image.png

Then you can use [Value] as your slicer which then filters your [Attribute]

csmith31.gif






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



View solution in original post

v-yetao1-msft
Community Support
Community Support

Hi @Anonymous 

You need to add the stores to Column B and then use the field Column B as a slicer to filter fruits .

Ailsamsft_0-1628732176148.pngAilsamsft_1-1628732176150.png

Best Regards

Community Support Team _ Ailsa Tao

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

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Please show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-yetao1-msft
Community Support
Community Support

Hi @Anonymous 

You need to add the stores to Column B and then use the field Column B as a slicer to filter fruits .

Ailsamsft_0-1628732176148.pngAilsamsft_1-1628732176150.png

Best Regards

Community Support Team _ Ailsa Tao

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

ChrisMendoza
Resident Rockstar
Resident Rockstar

I'm not quite sure I understand. From what I see you need to unpivot your 'Store' table so it looks like:

image.png

Then you can use [Value] as your slicer which then filters your [Attribute]

csmith31.gif






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



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.