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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Create a simple date graph

Hello everybody,

I would like to create a simple line graph where I have dates on the X-axis and the cumulative number of diffusion dates and the cumulative number of expected diffusion dates on my Y-axis.

 

I have created a date table with the formula Calendar = CALENDARAUTO() for my X-axis.

 

For the Y-axis, I have a table with the real diffusion date and the expected diffusion date for each document (no diffusion date if no diffusion). I expected to see the progression of the number of diffusions.

 

For a reason I don't get, the graph shows only the total number of diffusion date and the total number of expected diffusion date I have in my table.

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @Anonymous 

 

Download sample PBIX file with this data/chart

 

You need to rearrange your data so that the Y-axis is plotting numeric values rather than dates.  Something like this

vals4.png

 

You can then plot this chart with Real/Expected as the Legend

chart1.png

 

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

2 REPLIES 2
PhilipTreacy
Super User
Super User

Hi @Anonymous 

 

Download sample PBIX file with this data/chart

 

You need to rearrange your data so that the Y-axis is plotting numeric values rather than dates.  Something like this

vals4.png

 

You can then plot this chart with Real/Expected as the Legend

chart1.png

 

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Anonymous
Not applicable

Thank you, it seems to solve my problem ! 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.