Forum Discussion

dsilveira's avatar
dsilveira
Icon for Advocate I rankAdvocate I
10 years ago
Solved

Timeline slicer default to previous day

Hi everyone! I have a timeline that allow to show me all my sales since 2002 day to day, but the most important day for me is "Yesterday" I would like show by default this value in my timeline. (To ...
  • Eric_Zhang's avatar
    Eric_Zhang
    10 years ago

    dsilveira wrote:

    Thanks Anonymous

    For the moment I'm using your solution, but really I would like work with the timeline because in some moments I like check the sales in the last month or maybe the last year or last week (I would like see in other range of time, BUT I usually check "yesterday").

    For that, I would like keep the timeline and its functionalities.

     


    Then just keep the timeline as it is. If you usually check "yesterday", create a measure and put it in an individual visual constantly, then you don't have to check "yesterday" any more. You can check the sales in last week,month,year and it won't affect the "yesterday" visual.

     

    A measure based on a calendar table from Anonymous would be like

     

    Yesterday Measure =
    CALCULATE (
        SUM ( yourTable[Column] ),
        FILTER ( ALL ( yourTable), RELATED ( DateTable[Day] ) = "yesterday" )
    )