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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Vishruti
Helper I
Helper I

Plotting Date column on Y axis for Line Chart

Hello,

My requirement is to plot date column on Y axis and 2 fields on X axis - Product Risk Category (Low, Medium, High) and Product Names.

 

How can I achieve this?

2 ACCEPTED SOLUTIONS
manvishah17
Responsive Resident
Responsive Resident

Hi @Vishruti ,

  • Matrix Visual (Recommended for Hierarchy)

    • Date → Rows
    • Product Risk Category, Product Name → Columns
    • Any Measure → Values
  • Bar Chart (For Categorized Representation)

    • Date → Y-axis
    • Product Risk Category → X-axis (use Measure )
    • Product Name → Legend
  • Concatenated Column (If X-axis Needs Both Fields)

    • Create new column:
      DAX:
      ProductCategoryName = Product[Product Risk Category] & " - " & Product[Product Name]
    • Use this column on the X-axis instead of separate fields.



 

View solution in original post

Hi @Vishruti 

 

It is not possbile to represent Date field in Line chart.

 

Thanks

View solution in original post

7 REPLIES 7
v-menakakota
Community Support
Community Support

Hi @Vishruti ,

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

Hi @Vishruti  ,

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.

Thank you.

Hi @Vishruti  ,

I hope the provided information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.

Thank you

DineshYadl
Helper I
Helper I

Hi @Vishruti 

 

Line chart supports only measures in Y-axis . 

 

In addition, you can convert time format to numeric value.

 

Thanks

Hi,

Converting dates into numerical values is causing issue with sorting dates from earliest to latest

Hi @Vishruti 

 

It is not possbile to represent Date field in Line chart.

 

Thanks

manvishah17
Responsive Resident
Responsive Resident

Hi @Vishruti ,

  • Matrix Visual (Recommended for Hierarchy)

    • Date → Rows
    • Product Risk Category, Product Name → Columns
    • Any Measure → Values
  • Bar Chart (For Categorized Representation)

    • Date → Y-axis
    • Product Risk Category → X-axis (use Measure )
    • Product Name → Legend
  • Concatenated Column (If X-axis Needs Both Fields)

    • Create new column:
      DAX:
      ProductCategoryName = Product[Product Risk Category] & " - " & Product[Product Name]
    • Use this column on the X-axis instead of separate fields.



 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.