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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
NigelP99
Regular Visitor

Creating A Simple graph using two columns of a Dataverse Table

Hi 

I have a very simple dataverse table consisting of a Date Time field "Created On" and a Numeric field called "Temperature".

 

I want PowerBI to have the "Created on" on the X-Axis and the "Temperature" on the Y-Axis.

 

PowerBI insists I want the "Sum Of" temperatures on the Y-Axis. I do not.

 

This should be just  case of dragging "Created on" onto the X-asxis and "Temperature" onto the Y axis and perhaps Filter on the last 24 hrs.

 

Why is this so difficult ?

 

Or is this a bug in PowerBI ?

 

Regards

 

Nigel

1 ACCEPTED SOLUTION

Yes, you're missing the fact that in visual you need to give Power BI context of aggregation. In your case even if you will put the AVG/SUM to the field - it will return the value of the field.

SUM(17,2) is 17,2
AVERAGE(17,2) is still 17,2

Doesn't matter if you will use SUM or AVG - it will return its value.





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

Proud to be a Super User!




View solution in original post

10 REPLIES 10
bolfri
Solution Sage
Solution Sage

Due to fact that you've not provided any sample data I've used my own.

 

Created onTemperature (Celsius)
2022-01-01 12:00:0022,5
2022-01-02 12:00:0021,3
2022-01-03 12:00:0019,8
2022-01-04 12:00:0017,4
2022-01-05 12:00:0014,2
2022-01-06 12:00:0011,1
2022-01-07 12:00:008,4
2022-01-08 12:00:005,9
2022-01-09 12:00:004,2
2022-01-10 12:00:002,8
2022-01-11 12:00:00-0,5
2022-01-12 12:00:00-2,8
2022-01-13 12:00:00-4,4
2022-01-14 12:00:00-6,7
2022-01-15 12:00:00-9,4
2022-01-16 12:00:00-11,7
2022-01-17 12:00:00-14,4
2022-01-18 12:00:00-16,7
2022-01-19 12:00:00-19,4
2022-01-20 12:00:00-22,2

 

Step 1) Make sure that Created on is a date/datetime format and Temperature is numeric one.

Step 2) Choose Clustered column chart and drag Created on to X-axis and Temperature on Y-axis.

 

bolfri_0-1673799743650.png

 

Note that my data is based on random values, so it looks silly, but it works OK 🙂





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

Proud to be a Super User!




Thanks for your prompt response.  Here was what I was hoping to get (works from Excel!) 

 

NigelP99_2-1673824204691.png

This is what happens if I use a line chart in PowerBI

 

NigelP99_3-1673824273943.png

 

I dont understand why this works in Excel but not in PowerBI.

 

Regards

 

Nigel

Remove Created on from legend.

Make sure to use dates on Y-axis, not only Time value.





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

Proud to be a Super User!




Hi @bolfri 

Why use dates on Y axis ?

 

I want my date / time to run along the bottom (x-axis)

 

Regards

 

Nigel

I am sorry, I meant x-axis. 🙂 Just make sure it's a datetime, because right now it seems to be a time only.





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

Proud to be a Super User!




Hi

 

I think the issue is that PowerBI does not like the field (Actual Temperature) I am using. As PowerBI converts to Count Of when the field is a Text field. But I am using a Dataverse table where the field is of Type "Decimal" which PowerBI should not convert to a CountOf in the Y-Axis of my Line chart.

 

Any ideas ?

 

Regards

 

Nigel

Yes. If it's decimal field then change Count to Average/Sum (as u prefer). It will work then.





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

Proud to be a Super User!




Hi

 

I dont want Average / Sum - I just want the value of the field.

 

(or am I missing something ?)

 

Thanks

 

Nigel

Yes, you're missing the fact that in visual you need to give Power BI context of aggregation. In your case even if you will put the AVG/SUM to the field - it will return the value of the field.

SUM(17,2) is 17,2
AVERAGE(17,2) is still 17,2

Doesn't matter if you will use SUM or AVG - it will return its value.





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

Proud to be a Super User!




Hi @bolfri

Thanks - thats great !¬

 

It now works as I wanted it to.

 

Thanks for staying with me on this one.

 

Thanks

 

Nigel

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.