Forum Discussion

mason23's avatar
mason23
Helper I
4 years ago
Solved

converting rows to Y axis

Hello Community,

I have a dataset below and I'm using a Gantt visual to display rows A, B, C, D, and E as my Y-axis in the task field of the Gantt visual. The dates would be compared to the current date(30, 60, 90, etc..) Any ideas? Thank you

 

 

  • Hi, 

    Thanks for the reply. I think this should work. 

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi mason23 ,

    I created a sample pbix file(see attachment) for you, please check whether that is what you want. 

    1. Upivot all columns as below screenshot

    2. Create a calculated column as below to get the day diff between the date with current date

    Duration = DATEDIFF( 'Table'[Date], TODAY(),DAY)

    3. Create a gantt visual with below setting

    If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

    How to upload PBI in Community

    Best Regards

  • Hi, 

    Thanks for the reply. I think this should work.