Forum Discussion
nalingupta94
2 years agoFrequent Visitor
Finding required date.
Hi all, I am fairly new to powerBI, and am still trying to figure out a lot of it's functioning. I am working on generating a report, and one of the requirements is to replace a date. Below is a ...
- 2 years ago
Hi
This calculated column formula works
Column = if(and(Data[Code]="1",Data[Checking year]=Data[Year]),LOOKUPVALUE(Data[Date],Data[Monnth number],CALCULATE(MIN(Data[Monnth number]),FILTER(Data,Data[Checking year]=EARLIER(Data[Year])&&Data[Code]="1"&&Data[Monnth number]=3)),Data[Checking year],Data[Year],Data[Code],"1"),LOOKUPVALUE(Data[Date],Data[Monnth number],8,Data[Checking year],Data[Year],Data[Code],"2"))
amitchandak
2 years agoSuper User
nalingupta94
2 years agoFrequent Visitor
Hi amitchandak,
this is pretty close, but I would like the day to be same as the day with month = 08.
e.g. if the dates are 10/09/2022(date A) & 20/08/2022 (date B).
Date A should be replaced by date B.