Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Filter Measure By Date

Hi,   I have looked at multiple forum postings and unfortunatly they don't quite answer my question. I need to create a really simple measure that filters before a particular date as oppose to usin...
  • v-danhe-msft's avatar
    8 years ago

    Hi Anonymous,

    Based on my test, you can refer to below steps:

    1.I have entered some sample data to test your problem in below pictures.

    2.Create a new measure to calculate your filter data.

    FilterMeasure = CALCULATE (SUM('Integrated Calendar'[Credit]),FILTER (ALL('Integrated Calendar'[Invoice Data] ),'Integrated Calendar'[Invoice Data] <= DATE ( 2017, 1, 6 )))

     

    3.Create a Card visual and add the [FilterMeasure] field and you can see the result.

    You can also download the PBIX file to have a view.

    https://www.dropbox.com/s/p91heavj2klrn4a/Filter%20Measure%20By%20Date.pbix?dl=0

     

    Regards,

    Daniel He