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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.