Forum Discussion

manishsalanke's avatar
manishsalanke
Icon for Helper II rankHelper II
3 years ago

last 30 days Calander

hii.. team we have a case where we want to show last 30 days orders and only last 30 days orders should be shown in table and it should be dyanmic ,so we wanted to create a new calander which will have last 30 days and data should filter values from max date avalible and not todays date

8 Replies

  • Arul's avatar
    Arul
    Icon for Super User rankSuper User

    manishsalanke ,

    Try something similar to this calculated table,

    Calendar Table = CALENDAR(
        MAX(financials[Date])-29,MAX(financials[Date]))
    • manishsalanke's avatar
      manishsalanke
      Icon for Helper II rankHelper II

      thank you arul for your response . as per ur shared measure i have added it and it is showing dates correctly but when i add any mesure with count in a table with this date is only filters first n last date shering image for better understanding 

       

       

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

        manishsalanke You need to use that code in calculate table instead of measure. Since you mentioned in the question where you need a new calender table with last 30 days.