Forum Discussion

dtango9's avatar
dtango9
Helper II
5 years ago
Solved

Need FISCAL YTD formula + Slicer

  Hello, I created a dashboard and it is almost complete!  I'm just looking to edit the calculated measure shown below so that it represents Fiscal Year-to-Date (that begins Dec 1 to Nov 30...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi  dtango9 ,

    According to your description, the data from October 1, 2019 to December 31, 2020 is created:

     

    Here are the steps you can follow:

    1. Create Measure.

    Measure =
    CALCULATE(SUM('Table'[amount]),FILTER(ALLSELECTED('Table'),[Date]<=TODAY()&&[Date]>=DATE(YEAR('Table'[Date])-1,MONTH(TODAY()),DAY(TODAY()))))

    2. Result.

    Your measure filter does not generate you. You can add allselect() or all() functions to the function. For this kind of content, you can check the related link:

    https://docs.microsoft.com/en-us/dax/all-function-dax

    https://docs.microsoft.com/en-us/dax/allselected-function-dax

     

    You can downloaded PBIX file from here.

     

    Best Regards,

    Liu Yang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.