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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
KT-PBI
Frequent Visitor

Reproducing an Excel Line chart in Power BI Desktop

Hi all

 

This seems like a simple thing to do but I can't figure this out....

 

I have a simple table that has Anomaly values against years 

 

Screenshot 2024-02-27 160817.png

In Excel I can get a Line chart to plot these values

Screenshot 2024-02-27 160843.png

 

But the best I can seem to do in PBI is a scatter chart

 

Screenshot 2024-02-27 160906.png

I can never get the column charts (clustered or stacked) to plot a simple x vs y plot.

 

Feel like I'm missing a trick here. Have formatted the years as whole numbers and the only thing I can think of is that it's direct number plotting rather than aggregation / summing etc for the Anomaly values. Can't really get the scatter chart to behave as I'd like it either.

 

All thoughts welcomed!

 

Cheers

 

Keith

1 ACCEPTED SOLUTION
KT-PBI
Frequent Visitor

So the take away from this is graphs only allow measures to be used on the y axis!

View solution in original post

4 REPLIES 4
KT-PBI
Frequent Visitor

Hi both

 

Thanks for your input! Had figured the line chart was the correct chart but couldn't get the Anomoly value to be accepted onto the Y Axis (should have mentioned this!). After messing about and reading around, changing the way the data was being bought in, turns out using 

 

SumAnom = SUM( tbl_Anomoly[Anomaly] )
 
rather the the raw 
 
tbl_Anomoly[Anomaly]
 
value was the way to go and we now have a line chart as required!
 
KTPBI_0-1709114909537.png

 

Good start to the day! Have liked both solutions but not accepted either as the solution, hope this is ok and thanks for your input!

 

Have an ace day both!

 

Cheers

 

Keith

KT-PBI
Frequent Visitor

So the take away from this is graphs only allow measures to be used on the y axis!

Syk
Super User
Super User

Hey Keith! Have you used the line chart in Power BI? It should format for you even if your years are aggregated

Syk_0-1709052228703.png

 

audreygerred
Super User
Super User

Hi! If you create a line chart with the x-axis set to categorical instead of continuous, and ensure that it is sorted ascending by year you can get the look you are going for:

audreygerred_0-1709052045129.png

 





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

Proud to be a Super User!





Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.