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.

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!



Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors