Forum Discussion
Anonymous
4 years agoNot applicable
Modelling/Transforming rows with overlapping Start Dates and End Dates to determine client status
Hi all, I have written my problem below. I hope with enough clarity. I would prefer a solution in Power Query/M, but I'll gladly settle for a solution in DAX. The use case: My organization m...
- 4 years ago
Hi Anonymous ,
Please add these custom columns in Power Query Editor.
= List.Dates([Start Date], Duration.Days([End Date]-[Start Date])+1 ,#duration(1, 0, 0, 0))= let CID = [Client ID], LDate = [List_Dates], mylist = Table.SelectRows(#"Added Custom", each [Client ID] = CID and List.ContainsAny([List_Dates], LDate))[#" Serial#"] in Text.Combine(List.Transform(mylist, Text.From), ",")Then calculate the maximum and minimum dates by grouping in [Client ID] and [Custom] columns.
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-kkf-msft
4 years agoCommunity Support
Hi Anonymous ,
I will try to solve it, please be patient.