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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.