cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Csmith31
Helper II
Helper II

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
Super User
Super User

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

Ailsa-msft
Community Support
Community Support

Hi @Csmith31 

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/
Ailsa-msft
Community Support
Community Support

Hi @Csmith31 

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

ChrisMendoza
Super User
Super User

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

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.