Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

How to filter year = 2019 ?

Hi All

 

  • mpicca13's avatar
    mpicca13
    5 years ago

    Anonymous Unsure of what the use case is, if you simply want to show just 2019 data in the page you can just go to the filter pane on the right hand side, be sure to add [year] in the filter pane, select basic filtering and select checkbox for just 2019

     

    Or you could add all dates (down to date level ) to filter pane and filter by relative date.

5 Replies

  • Anonymous , example measures

     

    Hard coded

    measure =
    calculate(sum(Table[Qty]), filter(Date,year(date[date])=2019))

     

    Using time intelligence

    Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))
    Last year Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR(dateadd('Date'[Date],-1,Year)),"12/31"))

    • mpicca13's avatar
      mpicca13
      Icon for Resolver IV rankResolver IV

      Anonymous Unsure of what the use case is, if you simply want to show just 2019 data in the page you can just go to the filter pane on the right hand side, be sure to add [year] in the filter pane, select basic filtering and select checkbox for just 2019

       

      Or you could add all dates (down to date level ) to filter pane and filter by relative date.

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi Mpicca

         

        Thank you for give me the key word  and i google now i am able to filter year = 2019.

         

        Paul

         

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Sir

      May i know how to use Filter to temperay filter year =2019.

      Paul

  • Anonymous's avatar
    Anonymous
    Not applicable

    You could add a column in your Date table which match as follows:

    Calculated Column = year(Date[Date])=2019

     

    This will give you a status that you can filter in your table graph