Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mason23
Helper I
Helper I

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

 

mason23_0-1650920823575.png

 

1 ACCEPTED SOLUTION
mason23
Helper I
Helper I

Hi, 

Thanks for the reply. I think this should work. 

View solution in original post

2 REPLIES 2
mason23
Helper I
Helper I

Hi, 

Thanks for the reply. I think this should work. 

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

yingyinr_1-1651123078064.png

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

yingyinr_0-1651123028922.png

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.