Forum Discussion

Vishruti's avatar
Vishruti
Icon for Helper I rankHelper I
1 year ago
Solved

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?

  • 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.



     

7 Replies

  • manvishah17's avatar
    manvishah17
    Icon for Solution Supplier rankSolution Supplier

    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.



     

  • Hi Vishruti 

     

    Line chart supports only measures in Y-axis . 

     

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

     

    Thanks

    • Vishruti's avatar
      Vishruti
      Icon for Helper I rankHelper I

      Hi,

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

      • DineshYadl's avatar
        DineshYadl
        Icon for Helper I rankHelper I

        Hi Vishruti 

         

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

         

        Thanks

  • v-menakakota's avatar
    v-menakakota
    Icon for Community Support rankCommunity 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.

    • v-menakakota's avatar
      v-menakakota
      Icon for Community Support rankCommunity Support

      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.

      • v-menakakota's avatar
        v-menakakota
        Icon for Community Support rankCommunity Support

        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