Forum Discussion
danielpaduck
2 years agoHelper III
Calculate Question - How To Keep A Column Value In The Calculation
Hi, How is it possible to keep/evaulate the column 'Period' In my Calculate function? Labor Hours Conditional (D) = var minPeriod = CFGDates_Min_Max[Min Period (msr)] var ...
Ashish_Mathur
2 years agoSuper User
Hi,
The approach should be as follows:
- Create a Calendar Table with calculated column formula for Year, Month name and Month number. Sort the Month name column by the Month number column
- Create a relationship (Many to One and Single) from the Date column of your Data Table to the Date column of the Calendar Table
- To yoru visual, drag Year and Month name from the Calendar Table
- Write this measure
Measure = if(month(min(calendar[date]))=1,[Actual],[Forecast])
Hope this helps.
- danielpaduck2 years agoHelper III
I will try ths.