Forum Discussion

shri2785's avatar
shri2785
Frequent Visitor
3 years ago
Solved

Issue with Constant date value in slicer

Hi Power BI Gurus,    I have tried to create a slicer for YTD, QTD, MTD using some links on web.  Below is the code for the same  Time_Frame = VAR TodayDate = Today() VAR YearStart = Calculate(...
  • Wilson_'s avatar
    3 years ago

    Hello shri,

     

    You don't need to include the year in the second parameter in STARTOFYEAR; you can just use "12/31" instead of "12/31/2023". That might solve your issue. I can't quite tell what you're trying to accomplish.


    ----------------------------------
    If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)