Forum Discussion

GWafonin's avatar
GWafonin
Icon for Advocate III rankAdvocate III
4 years ago
Solved

Cycle time matrix calculation (distance in days between dates)

Hello! I want to create cycle time matrix. Like on the picture above. In the beginning I had a column of attributes and a column of dates. First I transformed the data (cross join), then...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi  GWafonin ,

    I added a rand() function to act as the value.

    Here are the steps you can follow:

    1. Create calculated table.

    Table = DISTINCT('Slice'[Milestones])

    2. Create measure.

    Measure =
    IF(
        MAX('Table'[Milestones])=MAX('Slice'[Milestones]),0,MAX('Slice'[rand]))

    3. Result:

    The same will display 0, and the rest will display value.

    Best Regards,

    Liu Yang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly