Forum Discussion

Fro88er's avatar
Fro88er
Helper IV
5 years ago
Solved

Copy up/down If Statement column

I wrote an if column statement on my calendar table that is working perfectly; however I need it to fill up/down on the column so I can write my next formula, [IsCurrentMonthCust2] <= [RollMonthCustom].  The reason, I need to identify the current month only AFTER the 3 day of the 2nd week, each month, therfore I am creating a custom M, W, D ID.  However I can't use the normal calendar logic, instead a custom 4-4-5 week Quarter; that part I have right.


Thoughts, on how to fill the results up and down the calendar table. It's only returning the correct results on todays date in the calendar. 

 

  • I figured it out.  I changed the field to whole number and added a column and/or measure to sum the results.  Not ideal to have an additional column, but I could not get it to work in one calc columns.  This works for now.

     

    IsCurrentMonthCust 3 =
    SUM('DimCalendar - Forecast'[IsCurrentMonthCust 2])

1 Reply

  • I figured it out.  I changed the field to whole number and added a column and/or measure to sum the results.  Not ideal to have an additional column, but I could not get it to work in one calc columns.  This works for now.

     

    IsCurrentMonthCust 3 =
    SUM('DimCalendar - Forecast'[IsCurrentMonthCust 2])