Forum Discussion

BLAWHEEM1's avatar
BLAWHEEM1
Icon for Helper I rankHelper I
5 years ago
Solved

Really need some help... Date Table School Terms

Have searched the forums but not found anything that helps me out.  Here is my issue, I need a date table that understands school terms and works with these in a similar way to quarters in a normal d...
  • amitchandak's avatar
    5 years ago

    BLAWHEEM1 , Make sure you do it in the Separate term table.

    Create a Rank on start Date

    New column

    Term Rank = RANKX(all('Date'),'Date'[Start Date],,ASC,Dense)

     

    measure example

    This Term = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Term Rank]=max('Date'[Term Rank])))
    Last Term = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Term Rank]=max('Date'[Term Rank])-1))