Forum Discussion
Insert previous value
- 6 years ago
You need to add more conditions like Region
Example
Last Month column = minx(FILTER('Date','Date'[Date]=EARLIER('Date'[Prev Month Value]) && 'Date'[Region]= earlier('Date'[Region])),'Date'[Month-Year])
I did it two steps. In two columns
First columns get the date that corresponds to the date this month, Second brings the content
Prev Month Value = dateadd('Date'[Date],-1,MONTH)
Last Month column = minx(FILTER('Date','Date'[Date]=EARLIER('Date'[Prev Month Value])),'Date'[Month-Year])
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin
- SErgey-kuznetso6 years agoFrequent Visitor
amitchandak
Ok! First step helped me to figure out Prev_Month_Value but due to the function MINX it insert the minimal value from previous month.There are many repeated Regions with different values of the Steps and I need to insert the Previous Value of the Region from Last Month in current.
Here another example of table http://prntscr.com/qugxns- amitchandak6 years agoSuper User
You need to add more conditions like Region
Example
Last Month column = minx(FILTER('Date','Date'[Date]=EARLIER('Date'[Prev Month Value]) && 'Date'[Region]= earlier('Date'[Region])),'Date'[Month-Year])- SErgey-kuznetso6 years agoFrequent Visitor
amitchandak
Thanks, It works! I really appreciate your help