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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Prinsh
New Member

Forced to summarise

Hello everyone,

I was working on some data viz for ASX ETFs by sectors for comparision. Got some clean data off yfinance and built a dataset as such:

Prinsh_0-1748703481703.png

On excel I am able to generate a time vs close price line chart for a sector. I was trying this out on PowerBI with all the sectors, so date on X, Sector on Legend and close price as Y, however I keep getting forced to summarise the field, even though on the table view I have it set to decimal and don't summarise. Could this be an issue with my dataset? or maybe I am not using the plot for its intended use? Any insights are welcome!

1 ACCEPTED SOLUTION
burakkaragoz
Community Champion
Community Champion

Hi @Prinsh ,

 

The issue you're facing is likely due to the structure of your dataset. Since your dates are in columns (wide format), Power BI struggles to treat them as a proper time series. To build a time vs value plot with sectors on the legend, you’ll need to unpivot your data first.

Here’s what you can do:

  1. In Power Query, select all the date columns (e.g. 4/01/2023, 5/01/2023, etc.)
  2. Right-click and choose Unpivot Columns
  3. This will give you a new structure like:
   ASX Code | Sector | Date       | Value
   A200     | Financials | 4/01/2023 | 102.5
   AAA      | Real Estate | 4/01/2023 | 98.3
   ...
  1. Now in your visual:
    • Put Date on the X-axis
    • Value on the Y-axis
    • Sector in the Legend

This will allow Power BI to treat the dates as a continuous axis and plot each sector’s trend over time.

Let me know if you need help with the unpivot step or setting up the visual.

If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.

translation and formatting supported by AI

View solution in original post

7 REPLIES 7
v-hashadapu
Community Support
Community Support

Hi @Prinsh , I hope you're doing well! Just checking in to see if you had a chance to review the details shared earlier. If any of the information addressed your needs, feel free to mark it as "Accept as Solution" or give it a 'Kudos' to help others in the community. Please let me know if you have any further questions!

v-hashadapu
Community Support
Community Support

Hi @Prinsh ,
I hope the information shared by @danextian was helpful. If you have any additional questions or would like to explore the topic further, feel free to reach out. If any of the responses resolved your issue, please mark it "Accept as solution" and give it a 'Kudos' to support other members in the community.
Thank you!

v-hashadapu
Community Support
Community Support

Hi @Prinsh ,
I wanted to follow up and see if you’ve had a chance to review the information provided here.
If any of the responses helped solve your issue, please consider marking it "Accept as Solution" and giving it a 'Kudos' to help others easily find it.
Let me know if you have any further questions!

danextian
Super User
Super User

Hi @Prinsh 

 

Whatever field placed in Y-axis has to be summarized one way or another. After all, that is meant to show the summarized data by legend or X-axis columns. Not summarizing works on tables and matrices (column/row headers) where each distinct numeric value can be in its own row.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Ashish_Excel
Super User
Super User

Hi,

Even if you click on the SUM function, it should not matter because there will always be onely 1 instance of a date and sector record.

burakkaragoz
Community Champion
Community Champion

Hi @Prinsh ,

 

The issue you're facing is likely due to the structure of your dataset. Since your dates are in columns (wide format), Power BI struggles to treat them as a proper time series. To build a time vs value plot with sectors on the legend, you’ll need to unpivot your data first.

Here’s what you can do:

  1. In Power Query, select all the date columns (e.g. 4/01/2023, 5/01/2023, etc.)
  2. Right-click and choose Unpivot Columns
  3. This will give you a new structure like:
   ASX Code | Sector | Date       | Value
   A200     | Financials | 4/01/2023 | 102.5
   AAA      | Real Estate | 4/01/2023 | 98.3
   ...
  1. Now in your visual:
    • Put Date on the X-axis
    • Value on the Y-axis
    • Sector in the Legend

This will allow Power BI to treat the dates as a continuous axis and plot each sector’s trend over time.

Let me know if you need help with the unpivot step or setting up the visual.

If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.

translation and formatting supported by AI

speedramps
Super User
Super User

Use MIN., MAX or AVERAGE to summarize

You know that a sector does not have more than one ticker price for a date,

but Power BI does not know that.

It need MIN., MAX or AVERAGE to compute a scalar value to plot a line graph.

Please click thumbs up and [accept solution]

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors