Forum Discussion

Pfandgiraffe's avatar
Pfandgiraffe
Frequent Visitor
2 years ago
Solved

Switch a visual between two different dates

Hi there,

 

i have a visual whitch shows me the starting date of manufacturing order. Is it possible to add a button (f.e. a data cut) to change between the starting date and the end date of these orders?

 

Actually i can see only the starting date cause my table with the prod. orders is linked with my date table and only one link can be activated at the same time.

 

Hope my explanation is comprehensible. Thanks in advance for any hint!

 

 

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Pfandgiraffe ,

    You can create a parameter to be placed in the x-axis coordinates:

    The effect is shown below:


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

5 Replies

  • isjoycewang's avatar
    isjoycewang
    Solution Supplier

    Hi Pfandgiraffe,

     

    You can try to create an inactive relationship between these 2 tables on EndDate.

    And then you should be able to extract the end date by using USERELATIONSHIP() in your formula.

     

    Please see below example.

    EndDate = CALCULATE(MAX('Table'[EndDate]), USERELATIONSHIP('Date'[Date], 'Table'[EndDate]))

     

    If it not fits in your case, please share more dummy data and your expected results. 

     

    Best Regards,

    Joyce

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Pfandgiraffe ,

    You can create a parameter to be placed in the x-axis coordinates:

    The effect is shown below:


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

    • Pfandgiraffe's avatar
      Pfandgiraffe
      Frequent Visitor

      Hi Anonymous ,

       

      thanks - that was what im looking for! 🙂 Thanks for this easy solution.

       

      One little thing: Did you have an idea why the calendar week dissapear after using the Parameter?

      Before:

      After:

       

       

      ...When i remove and add the cw parameter again to the x-axis everything working well till i use the new parameter again.

       

       

       

      kind regards!

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi Pfandgiraffe ,

        Because there is a hierarchical relationship between calendar week and the start and end dates, the visual object applies drill-down functionality.
        After switching, you only need to click this button to see the details:


        Best Regards,
        Dino Tao