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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
bwilli33
Helper I
Helper I

Line Chart with overlapping dates

So I have yet to find anything that can help but i'd love to be able to make a line chart that compares contract years of a specific contract.  However the dates are unusual.  The contracts run from Dec 1st to Dec 14th of the next year.    so there is a bit of overlap

 

I am not sure how to insert images here this is my first time, but i can add some if needed

but the data is very simple..  

 

DateValueContractYear
12/1/2009444.52010
12/2/20094382010
12/3/2009433.752010
12/4/2009424.52010
12/7/2009419.752010
12/8/2009420.752010
12/9/20094202010

 

 

thoughts?

 

14 REPLIES 14
Greg_Deckler
Super User
Super User

@bwilli33 - I'm unclear on what you are looking for here. If it is date interval related, maybe Open Tickets? https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/td-p/409364. Like trying to see how many contracts are open at a time?

 

If it is a problem with time intelligence because of the weird contract period, You may find this helpful - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000

Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...

 

Otherwise, Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
amitchandak
Super User
Super User

@bwilli33 , not very clear. Use year as legend

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

yes i tried but i can't seem to get the dates at the bottom to just be days. but then the chart turns into a long daily chart with a horizontal bar ( i can get a pic if needed) otherwise this is what i get below.

 

Thank you for the help everyone!

 

Corn PowerBI.png

Anonymous
Not applicable

Ah, you can create a calculated column like: 

Month-Day = FORMAT('Table'[Date],"MM-DD")

And use that as the Axis 🙂  

ok tried that but still getting the day by day and a very long scroll bar.

 

Annotation 2020-08-11 091136.png

Anonymous
Not applicable

Yes that makes it day by day because we created a column with Month-Day. 
What would you expect to see? Per month?

My reply with "December Cotton Futures" chart that is the expected outcome. that was done in excel.

Hi  @bwilli33 ,

 

Could you pls upload your .pbix file to onedrive business and share the link with us?Remember to remove the confidential information.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

Here is a link to download the file.  Thank you so much for the help

 

https://liveutk-my.sharepoint.com/:u:/g/personal/bwilli33_utk_edu/EfD2eVShqiNLrj7Sfv4ou4wBnIzMVSCez4...

Anonymous
Not applicable

Hi @bwilli33 

 

I used this data set as in your example i found no overlap:

12/1/2009444.52010
12/2/20094382010
12/3/2009433.752010
12/4/2009424.52010
12/7/2009419.752010
12/8/2009420.752010
12/9/20094202010
12/7/2009419.752011
12/8/2009420.752011
12/9/20094202011
12/10/20094182011

 

I made the 3 overlaps bold. also assuming they have the exact same value. i created this linechart:

 

- There is an issue when uploading pictures.. Here is a link:
http://prntscr.com/txrfm0

 

I put Date in Axis, ContractYear in legend and value in values. 
Is this what you mean?

no i need the lines to lay on top of eachother

 

so the date range at the bottom should be Dec 1st to Dec 14th 

Corn Line Chart.png

Hi @bwilli33 ,

 

Is below what you need?

1.png

If so,put date to the X axis,and make it as date hierarchy,remove year and quarter,just keep month and day.

For the related .pbix file,pls see attached.

 

Best Regards,

Kelly

If I have solved your issue,pls mark the reply as answered!

Thank you, its very close.  the Y Axis should not be the sum but each point should be the non summarized values so it should range from like 300 to 800 i think.

Hi @bwilli33

 

It's just a workaround for you,if you wanna show the actual value,it would be shown as below:

Annotation 2020-08-14 145001.png

As for the same point in time,not all the contract year have values,so if you wanna the 3 lines to start from the same point,the best way is to remove year and quarter,but it will make the values aggregated on the same month-day.

 

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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