Forum Discussion
JanoLehocky
4 years agoHelper I
Help with identifying increase within a date range group
Good evening Power BI community, Hoping someone can help me with this challenge that I would like to proper and elegant solution for. I am starting with data that looks like this: Person...
- 4 years ago
Jakinta - replied to you
Greg_Deckler
4 years agoCommunity Champion
JanoLehocky Maybe:
PROMO STATUS Column =
VAR __Previous = MAXX(FILTER('Table',[Personnel no.] = EARLIER([Personnel no.] && [Basic Pay Record Start Date] < EARLIER([Basic Pay Record Start Date])),[Basic Pay Record Start Date])
VAR __PreviousBand = MAXX(FILTER('Table',[Personnel no.] = EARLIER([Personnel no.] && [Basic Pay Record Start Date] = __Pevious),[Salary Band])
RETURN
IF(__PreviousBand > [Salary Band],"Promotion",BLANK())
PROMO CYCLE =
IF(MONTH([Basic Pay Record Start])=3 && [PROMO STATUS] = "Promoted","On Cycle",BLANK())JanoLehocky
4 years agoHelper I
Greg_Deckler - Forgive me I am not entirely sure how to use your solution. Where do I paste this code in? Using the advanced editor?
Thank you
Jano
- Greg_Deckler4 years agoCommunity Champion
JanoLehocky No, I wasn't paying attention and gave you a DAX solution so you can't do that in Power Query, just as a DAX calculated column.