Forum Discussion
Azure DevOps - Chart Recreation
- 3 years ago
Hi FEninja_ ,
The logic of Measure2 is as follows:
First get the start and end dates selected by your slicer via the MIN and MAX functions, then[Created Date]<=MIN('Calendar'[Date])&&[Completed Date]>=MAX('Calendar'[Date])&&[Work Item Type]=" User Story"filters the data within the time period selected by the slicer and finally obtains the result by calculation.
Since I'm not quite sure what your sprint start and sprint end refer to, you may need to make some adjustments based on the actual situation.
I hope this can help you.Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi FEninja_ ,
Can you describe specifically how the date selected by the slicer should filter the User Story? What is the logic of its calculation? There are many columns in the file you provided, and I'm not quite sure which ones should be used to calculate.
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Measure 2 = CALCULATE(DISTINCTCOUNTNOBLANK(Data[Work Item ID]),FILTER(ALL(Data),[Created Date]<=MIN('Calendar'[Date])&&[Completed Date]>=MAX('Calendar'[Date])&&[Work Item Type]="User Story"))Also, If you could explain the logic in your FILTER statement - that would be helpful also