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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.