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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

Line chart

Hi, how can one build a regular line chart from two measures? The X axis field in the line chart doesn't accept one of these measures.

12 REPLIES 12
harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

You cannot use Measures as an AXIS or a Legend.

 

Regards,

Harsh Nathani

Anonymous
Not applicable

Hi @harshnathani Do you know if I could instead use columns (in the report mode) as Axis?

HI @Anonymous ,

 

You can use Columns as AXIS.

 

But can you share what you are trying to acheive and some sample data 

 

Thanks,

HN

 

 

amitchandak
Super User
Super User

@Anonymous , Line chart can take two measures if you not using the legend. Are you using legend ?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak no, neither Legend nor Axis accept the measure. I can only add this measure into Values, Secondary Values and Tooltips.

@Anonymous , I am able to add the values I want :

Screenshot 2020-07-13 12.36.19.png

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak  Is your Date a measure?...I need to add a measure in the Axis field.

@Anonymous , No date does not measure. Can you explain the need of date measure on axis

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @Anonymous ,

Currently measure can't be used in Axis fields or Legend fields of line chart visual. Please check if the workarounds in the following threads can help you.

Use Measure as Axis in visual

How to use a measure as an axis in Power BI

Dynamically change chart axis in Power BI

Best Regards

Rena

Anonymous
Not applicable

Hi @Anonymous Do you know if I could instead use columns (in the report mode) as Axis?

Anonymous
Not applicable

Hi @Anonymous ,

Could you please provide some sample data, expected result and the formulas of measure which you want to use in X Axis of line chart? It is better if you can explain the calculation logic of this measure. We will check if it can be created as calculated column, then use the new calculated column in line chart. Thank you.

Best Regards

Rena

Anonymous
Not applicable

hi @Anonymous Thanks for your replies. I've sent you pm (Sent: ‎07-15-2020 03:13 AM)

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

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.