Home Forums Power Pivot Fiscal QTD formula

This topic contains 0 replies, has 1 voice, and was last updated by  ColinBurrows 5 years, 5 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #11103

    ColinBurrows
    Participant
    • Started: 4
    • Replies: 3
    • Total: 7

    The DATESQTD() function does not allow for the YearEnd date to be specified (but hopefully one day it will…).  So if a company has a year end date that does not coincide with the end of a calendar quarter, then the  QTD formula has to be built from scratch.  After much trial and error (emphasis on the error), this is what I came up with:

    CALCULATE (
    [Total Amount],
    FILTER (
    ALL ( ‘Calendar’ ),
    ‘Calendar'[FiscalYear] = MIN ( ‘Calendar'[FiscalYear] )
    && ‘Calendar'[FiscalQuarter] = MIN ( ‘Calendar'[FiscalQuarter] )
    && ‘Calendar'[Date] <= MAX ( ‘Calendar'[Date] )
    )
    )
    So I’m posting this in the hope that it might help other people, but if anybody reading this knows of a simpler formula then please reply.

     

Viewing 1 post (of 1 total)

The forum ‘Power Pivot’ is closed to new topics and replies.