Forum Discussion

Penn's avatar
Penn
Icon for Resolver I rankResolver I
6 years ago
Solved

How to filter a table before ALLSELECTED

Hi All,

 

How do I filter a table before using ALLSELECTED function?

 

Before:

ALLSELECTED('Orders')

 

Now I want to achieve: 

 

'Calendar'[Date] is a slicer on the page.

 
FILTER(ALLSELECTED('Customer Portal Orders'), AND('Customer Portal Orders'[Order date].[Date] >= MIN('Calendar'[Date]), 'Customer Portal Orders'[Order date].[Date] <= MAX('Calendar'[Date])))
 
Doesn't work the way that I expected. [Order date] outside of 'Calendar'[Date] is still showing.
 
Thanks.
  • Penn can you share sample data and what you are trying to achieve?

     

    Also why you have .[Date] in your measure, remove that.

2 Replies

  • Penn can you share sample data and what you are trying to achieve?

     

    Also why you have .[Date] in your measure, remove that.

    • Penn's avatar
      Penn
      Icon for Resolver I rankResolver I

      Everything works when I was preparing the sample file, must be a stupid mistake somewhere, thanks