Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

DAX Help - Current Month * 12

Hi Guys, 

 

I'm trying to create the following formula (YTD Leavers / FY month we are in * 12) / YTD AVR Headcount

I have created the [YTD Leavers] & [YTD AVR Headcount] measures but am not sure how to create the

[FY month we are in * 12]

 

I have a dedicated calendar table with month names and month numbers, our FY starts in September so its month 1 

how can I have a measure that returns the month number based on the month that we are in multiplies that with 12 and returns value?

 

Thanks,

Kris 

  • DataInsights's avatar
    DataInsights
    3 years ago

    Forgot the "* 12". 🙂

     

    FY month we are in * 12 = 
    CALCULATE ( MAX ( DimDate[Month Num] ), DimDate[Date] = TODAY () ) * 12

2 Replies

  • Anonymous,

     

    Try this measure. I'm assuming that [Month Num] is the fiscal month number.

     

    FY month we are in * 12 = 
    CALCULATE ( MAX ( DimDate[Month Num] ), DimDate[Date] = TODAY () )

     

    • DataInsights's avatar
      DataInsights
      Super User

      Forgot the "* 12". 🙂

       

      FY month we are in * 12 = 
      CALCULATE ( MAX ( DimDate[Month Num] ), DimDate[Date] = TODAY () ) * 12