Forum Discussion
wonkavator
3 years agoNew Member
Conditional column output based on value from one column and date difference from a second column
Hi,
I using power query and am trying to create a conditional column highlighted in the black square in the image. The conditional column would output "New" if there is no other row in the file where the value in the Drug and ID column is an exact match to the current row OR if the data does match, the date difference must 1 year or greater. The conditional column would output "Refill" if there is an exact match in the Drug and ID column AND date difference is within 1 year. The example provided shows the desired output. Hoping this is possible. Thanks in advance!
This might help.
Result:
1 Reply
- JakintaSolution Sage
This might help.
Result: