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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
hoshisato
Regular Visitor

Plotting a date against two values insists on doing calculations with the values

Hello, 

I have a column of dates that I want to have on the X-axis and I want to graph the number of events that were approved and the number of events that were rejected on these days. I don't want Power BI to do anything with the numbers, just plot them for each day. When I click on the dropdown options for the values, I can do lots of calculations with them but not use it as is without any calculations, or so it seems.

 

The data I have spans 3 years, and no matter what I try in Power BI, the resulting graph only has 3 points whereas I was hoping to get a line following the values for each day over the 3 years. 

 

How do I make a graph that simply plots the two lines of numbers against a day?

 

Thanks for your suggestions,

 

Hans

1 ACCEPTED SOLUTION

Found it, on the X-axis I needed to selext 'date' instead of the default 'date hiearchy' 

View solution in original post

9 REPLIES 9
Anonymous
Not applicable

You can click on the column and select "Dont Summarize" option from the Modelling Tab. And then try plotting the graph.

snapshot.PNG

Thanks for your reply, the 'don't summarize' is set all the colums yet it does summarize. 

Anonymous
Not applicable

Okay, then you need to just plot the Date on the X axis and the Events on the Y axis. In the dropdown for values, choose "Sum".

 

 

Anonymous
Not applicable

Also, go to the formatting pane and set the X axis Type to "Categorical".Snap.PNG

 

Thanks for following up, the graph still has only 3 data points (for each year one) while I have over 600 days worth of data in my SQL table and hope to display a graph plotting the differnet values. 

Anonymous
Not applicable

Are you using Date Hierarchy? If yes, then remove the hierarchy from X-Axis and select Date. 2.PNG

 

Then you can have the graph like this :

1.PNG

 

If still you are facing the issue, please share the pbix or any sample so that I can help you further. 

 

 

Found it, on the X-axis I needed to selext 'date' instead of the default 'date hiearchy' 

v-chuncz-msft
Community Support
Community Support

@hoshisato,

 

You may take a look at link below.

http://community.powerbi.com/t5/Desktop/Trend-from-History-Table/m-p/200304#M88115

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hoshisato
Regular Visitor

Hello, 

I have a column of dates that I want to have on the X-axis and I want to graph the number of events that were approved and the number of events that were rejected on these days. I don't want Power BI to do anything with the numbers, just plot them for each day. When I click on the dropdown options for the values, I can do lots of calculations with them but not use it as is without any calculations, or so it seems.

 

The data I have spans 3 years, and no matter what I try in Power BI, the resulting graph only has a 3 points whereas I was hoping to get a line following the values for each day over the 3 years. 

 

How do I make a graph that simply plots the two lines of numbers against a day?

 

Thanks for your suggestions,

 

Hans

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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