Forum Discussion

jcc3508's avatar
jcc3508
Regular Visitor
3 years ago

Get Max Date Measure filtering with multiple slicers

Let's say I have a 450,000 x 70 table.

 

One of the 70 table columns is "Date", which contains dates  for each row entry. 

 

I have a report page in PBI that contains about 8 slicers.

Each slicer provides selection over the values of one column out of the 70 columns of this table. So there's a total of 8 different columns throughout the 8 different slicers.

 

I want to calculate a date measure, such that it returns the maximum date available after applying all 8 slicer selections. Could anyone help with this?

 

 

4 Replies

    • jcc3508's avatar
      jcc3508
      Regular Visitor

      Really? Perhaps I am missing something?

      A simple MAX('Table'[Date]') is not returning the MAX date out of all available dates.

       

       

      • tamerj1's avatar
        tamerj1
        Icon for Community Champion rankCommunity Champion

        jcc3508 
        Ok, now it is clear that you have a visual filter context that needs to be removed. The following formula should provide the result regardles of the filter context of the visual.

        =
        CALCULATE (
            MAX ( 'Table'[Date] ),
            ALLEXCEPT (
                'Table',
                'Table'[Column1],
                'Table'[Column2],
                'Table'[Column3],
                'Table'[Column4],
                'Table'[Column5],
                'Table'[Column6],
                'Table'[Column7]
            )
        )