Forum Discussion
Anonymous
8 years agoNot applicable
Get previous row value in new column
Hi, I have seen all the solutions related to this topic and couldn't find a solution to my problem hence posting here. I have created a new table in power bi using summarize which is just a coun...
- 8 years ago
Sample data would help but perhaps something like:
Previous = var PreviousDate = MAXX(FILTER(ALL(ddd),EARLIER(ddd[Date]) > ddd[Date] ),ddd[Date]) Return CALCULATE(MAX(ddd[NewUsers]),FILTER(ddd,ddd[Date] = PreviousDate))
Greg_Deckler
Community Champion
8 years agoSample data would help but perhaps something like:
Previous = var PreviousDate = MAXX(FILTER(ALL(ddd),EARLIER(ddd[Date]) > ddd[Date] ),ddd[Date]) Return CALCULATE(MAX(ddd[NewUsers]),FILTER(ddd,ddd[Date] = PreviousDate))
montoyesco
Helper I
6 years agoThat was an elegant solution Greg. I was wondering if you could help me with this another topic..... please!
https://community.powerbi.com/t5/DAX-Commands-and-Tips/LOOKUPVALUE-overrides-RLS/td-p/1195715