Forum Discussion

sagivh's avatar
sagivh
Microsoft Employee
6 years ago
Solved

Card with only last day data

Hello, I have a trend that shows daily active users and I want to have a card showing only the last day of that trend, it seems the card has a filter by date but i need to pick a date and cannot set "last day" as a value. 

 

Any idea how I can take an existing table and only show last day of values in a card?

 

thanks a lot. 

  • Based on the filter context it takes last of that period and if no filter then it takes the latest date.

    And its dynamic based on incremental data

8 Replies

  • Take the card with whatever your trend value and set the "Max" by clicking on the trend column from the data field.
    • sagivh's avatar
      sagivh
      Microsoft Employee

      Thank you very much for a quick reply. so if i select the last day its an actual date, and the next day it will stay one day behind... 

      • VijayP's avatar
        VijayP
        Community Champion

        Based on the filter context it takes last of that period and if no filter then it takes the latest date.

        And its dynamic based on incremental data

  • VijayP's avatar
    VijayP
    Community Champion

    sagivh 

    Try using  = LASTDAY(date column in your data).

    Please let me if this is a solution for your question and please mention this as solution and give your Kudos

    Regards

    Vijay Perepa

    Watch my Power BI Tutorial Videos at  Vijay Perepa-A MEET Z Tech

  • sagivh 

    If you simply want the last date that should consider filter than you can use Last Or the max function after putting the date on the card.  In Visualization pane right-click on the name of Date and do that.

     

    If you want from the table and do not want to consider any filter

    Max Date = calculate(Max(Table[Date]),All(Table))

     

    Say filter is no date table joined with this and only want all dates then

    Max Date = calculate(Max(Table[Date]),All(Date))

     

     

     

    • sagivh's avatar
      sagivh
      Microsoft Employee

      Thank you very much Amit, on the card the date doesnt appear on visualization, only the total data. if I add the datetime to my filters of that visualization I can only select an actual date to filter by and no LAST or MAX. 

  • Anonymous's avatar
    Anonymous
    Not applicable

    I have the same problem. In the card visual, if I put a date filter, and use "is in this day" filter, it shows the previous day.