Forum Discussion

Shamatix's avatar
Shamatix
Icon for Post Partisan rankPost Partisan
8 years ago
Solved

Default date values in slicer

Hey fellow users of Power Bi,   I have a slicer with a from and to date  as seen on the below picture. I want this slicer to ALWAYS start with the last years values, for example today its the 14-0...
  • McCow's avatar
    8 years ago

    Hi Shamatix,

     

    Please, try this solution:

     

     Here is the sample code

     

    Left slicer is a switch between one year operations "1" (button slicer for control, from now-365 to now) and "All" dates.
    "0" - is another dates (not last year) of need.

     

    Best regs!