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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
schreima
New Member

chart with 2 x-axis

Hi there,

 

I'm having the following table as basis:

 

Dateamount of on-handDate End of Leadtimeamount end of leadtime
05.05.231012.05.238
06.05.23913.05.2313
07.05.23914.05.2313
08.05.23915.05.2313
09.05.23816.05.2312
10.05.23817.05.2312
11.05.231318.05.2312
12.05.231319.05.2311

 

I would like to plot 2 line charts in one visual with their corresponding x-axis - so for line 1:  x-axis 1 =05.05.23, y-axis: 10, x-axis 2: 12.05.23, y-axis: 8, where x-axis are running synchron (meaning on 12.05. I can see on hand = 13, amount end of leadtime = 8

 

Do you have any idea how to realize that?

 

Thank you very much

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

I think you want to create a date table with 2 relationships to the 2 dates in your table(one will be active, one inactive).

Create a measure for the SUM of end of leadtime using USERELATIONSHIP.

Put the date from the date table on the x-axis of a line chart. Put Sum of amount on-hand in the y-axis. Put the measure on the secondary y-axis.

I think that's what you want.

View solution in original post

2 REPLIES 2
schreima
New Member

Super, thanks a lot, that helped a lot

HotChilli
Super User
Super User

I think you want to create a date table with 2 relationships to the 2 dates in your table(one will be active, one inactive).

Create a measure for the SUM of end of leadtime using USERELATIONSHIP.

Put the date from the date table on the x-axis of a line chart. Put Sum of amount on-hand in the y-axis. Put the measure on the secondary y-axis.

I think that's what you want.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors