Forum Discussion
If statement for greater date
- Anonymous3 years ago
Hi Rustynom ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create a calculated column.
Needs Follow-up = var _maxdate=MAXX(FILTER('Follow-Ups',[User ID]=Responses[User ID]),[Follow-uo reply date]) return IF(_maxdate>=[Latest Response Date],"Yes","No")(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for the reply on this. I tried implementing your recommendation here, however I'm unable to structure the relationships in a way that will allow the RELATED('Responses'[User ID]) to be recognized by the measure.
I've also tinkered around with your attached file and below is the error I get when attempting to append additional data to both of the test datasets.
It seems the relationship cannot be structured as many to one if duplicates are contained within both data sets. Because we are measuring only the latest of a list follow-up replies against a list of many responses, both datasets will contain duplicate user IDs.
If there is some way of transforming the follow-up table’s duplicate User ID's to keep the rows with the latest follow-up reply date, that would probably let me implement your measure.
Hi Rustynom ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create a calculated column.
Needs Follow-up = var _maxdate=MAXX(FILTER('Follow-Ups',[User ID]=Responses[User ID]),[Follow-uo reply date])
return IF(_maxdate>=[Latest Response Date],"Yes","No")
(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Rustynom3 years agoFrequent Visitor
This worked! Thank you!