Forum Discussion
Help with a Calculated Column
- Anonymous3 years ago
Hi MaironDominguez ,
Due to today is 8/7/2023, here I use 8/4/2023 as today to have a test to try to get the result you want.
StartDate = VAR _TODAY = DATE ( 2023, 08, 04 ) RETURN IF ( Table1[Ranking] = 1, _TODAY, _TODAY + CALCULATE ( SUM ( Table1[Estimated Resolving Time (Days)] ), FILTER ( ALLEXCEPT ( Table1, Table1[ITStaff] ), Table1[Ranking] < EARLIER ( Table1[Ranking] ) ) ) )EndDate = Table1[StartDate]+Table1[Estimated Resolving Time (Days)]Result is as below.
If you want to dynamic today value, you can replace DATE(2023,08,04) by TODAY().
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Please provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot).
This in te link to the PBI File;
This one is for the excel file im using as a Data Source;
- Anonymous3 years agoNot applicable
Hi MaironDominguez ,
Due to today is 8/7/2023, here I use 8/4/2023 as today to have a test to try to get the result you want.
StartDate = VAR _TODAY = DATE ( 2023, 08, 04 ) RETURN IF ( Table1[Ranking] = 1, _TODAY, _TODAY + CALCULATE ( SUM ( Table1[Estimated Resolving Time (Days)] ), FILTER ( ALLEXCEPT ( Table1, Table1[ITStaff] ), Table1[Ranking] < EARLIER ( Table1[Ranking] ) ) ) )EndDate = Table1[StartDate]+Table1[Estimated Resolving Time (Days)]Result is as below.
If you want to dynamic today value, you can replace DATE(2023,08,04) by TODAY().
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- MaironDominguez3 years agoFrequent Visitor
Thank you very much, i really appreciate it. I am going to try to adapt this method to the real data and if I have any inconvenience I will let you know in this way.
- MaironDominguez3 years agoFrequent Visitor
The following is happening: in some cases, there is a gap between the end date of one ticket and the start date of the next, theoretically that shouldn't happen (indicated with arrows). There's also the case (indicated with a dash) where a ticket hasn't ended when the next one starts. I would like to review this. I would also like to add that if a ticket starts or ends on a Saturday or Sunday, it should start or end on the following Monday.