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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
gellismyers
Frequent Visitor

filter out sales people

Hello,

 

I have a list of sales reps that I want in a slicer.  Is there a way to filter out reps based on another slicer that is filtering for time period.

 

So, a certain set of reps had no sales in 2018 because they didn't work for us.  Is there a way to eliminate those reps from the Sales Rep slicer?

 

Thank you

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@gellismyers seems like you have sales person and date dimension and realted to sales table. You can set relationship cross filter direction to "both" and that will show only sales person based on period selected in date dimension.

 

Keep in mind, cross filter direction can have performance impact on large datasets.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

3 REPLIES 3
parry2k
Super User
Super User

@gellismyers seems like you have sales person and date dimension and realted to sales table. You can set relationship cross filter direction to "both" and that will show only sales person based on period selected in date dimension.

 

Keep in mind, cross filter direction can have performance impact on large datasets.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Nevermind, I made the date-sales by manufacturer table bi directional rather than the sales dimension to sales by manufacturer table.  Once I fixed that it worked.

 

Thank you so much for your help.

 

 

Thanks a bunch.

 

When I go back and do that, it blows up some of my visuals:

 

'Couldn't load data for this visual'

 

Calculation error in mesaure "xxx":  function 'sameperiodlastyear' expects a contiguous selection when the date column comes from a table on the 1 side of a bi-directional relationship'

 

Any thoughts on that?  Sorry if that is an easy fix.  I'm a relatively new user but I've learned a lot.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.