Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Administrator
5 years ago

Automatically mark the first value in a filter.

Good afternoon

I have loaded in a filter object a view with different dates. I would like to know if it is possible to mark when entering the report the most current date loaded in the filter.

Thank you in advance

4 Replies

  • Syndicate_Admin , There no function support to default value , you can create a flag or column below and default on last date

     

    Is Today = if('Date'[Date]=max(Table[Date]),1,0)

     

    or

     

     

    Is Today = if('Date'[Date]=max(Table[Date]),"Last Date",[Date]&"")

     

    You can use one them as slicer

    • Syndicate_Admin's avatar
      Syndicate_Admin
      Administrator

      Thank you very much, @Syndicate_Admin,

      I created the new column with a value of 1 when it's the maximum date and 0 for the rest. Now, how do I automatically select when I load the report what this column equals 1?. I give example:

      Captura.PNG

      I now have dates 09/04/2021 and 08/04/2021. In the new column max_fecha, I have the value 1 for 09/04/2021 and the value 0 for 08/04/2021. My goal is that when opening the report dial 09/04/2021 as shown in the image.

      Thanks again

  • v-jingzhang's avatar
    v-jingzhang
    Community Support

    Hi Syndicate_Admin 

    I don't 100% understand your requirement. Can you share some dummy data or visuals to describe what you want to achieve? 

     

    Regards,
    Community Support Team _ Jing