Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Line chart X-Axis from two different tables .

Hi All ..!!
Been stuck and wondering to clear my on this. 
I have two tables (Dim_person and Fct_Project) .
For the line chart  in the X-Axis i should use the role name , and in the Y-Axis i should use two measure columns (Demand and capacity) , which will be giving us two line for us to compare between the two. 

Now the situation is for the line chart to give me proper result , for Demand i should be using Fct_Project[Role_name] and for Capacity i should be using Dim_Person[Role_name].If i use a single Role_name for both Demand and Capacity , the results will come wrong because the measures are made accordingly.  
For which in reality , it is not possible or the X-Axis will look lengthy if i add both the role_names from two different table . 

Is there any way to fit in Both Demand and capacity in a single line chart with a single Role_name column on the X-Axis so that it will reflect correct values? 


Thank you -

Super User
Super User

@MartinAa , Not very clear, But you can use both on the same x-axis, with concatenate label off


Concatenate Label off :



If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

!! Microsoft Fabric !!
Microsoft Power BI Learning Resources, 2023 !!
Learn Power BI - Full Course with Dec-2022, with Window, Index, Offset, 100+ Topics !!
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!

Helpful resources

May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Submit your Data Story

Data Stories Gallery

Share your Data Story with the Community in the Data Stories Gallery.

Top Solution Authors