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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
nsadams87xx
Helper III
Helper III

Line Graph Displaying future dates

Hey everyone, I have a line graph that is using dates for the x axis and they are displaying into the future rather than stopping at what the current date is.  I want the graph to be drilled down to the month level but stop at the current month.  Now that green line is simply a measure that = 2.  I'm using it as a "benchmark."  If I remove that measure, the graph displays correctly.  I checked all of my queries and my date keys and dates including my date dimension (that I'm having Power BI manage) don't display any data further than the present date.  Any ideas as to why this graph is behaving like this?

 

 

1.JPG

 

2.jpg

1 ACCEPTED SOLUTION

I figured out what was happening.  Instead of a measure, I made my benchmark line a column and made Power BI calculate the column's max value.

View solution in original post

5 REPLIES 5
CheenuSing
Community Champion
Community Champion

Hi @nsadams87xx 

 

How is your date table created ? Is it upto the end of a calendar year or upto the current date?  Or is it upto the last date in your data table ?

 

Please share the data of the tables and pbix  if possible in onedrive / google drive and post the link here to find a solution.

 

 

Cheers

 

CheenuSing 

 

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!

@CheenuSing , my date table is up to the current date to a point.  I use a SQL query to restrict dates in between a specific date range.  So actually I should say I want my chart to stop 14 days prior to the current date.  14 days ago is my "current date" which without the "benchmark measure" the report is doing.

 

Unfortunately I cannot share my .pbix file because there is confidential business/medical data in the report but if you need anything else, I'll do my best to provide applicable details.

 

My date keys in my fact table are also restricted to 14 days ago, again using a SQL query to control this before the data comes into Power BI.  Here is a screenshot of my date table, sorted by descending date.

 

date.JPG

Hi @nsadams87xx 

 

The x-axis months are from Calendar table or anyother table ? If from calendar table it should not go beyond the months in Calendar table.

 

Cheers

 

CheenuSing

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!

My X axis months are from my date table.

I figured out what was happening.  Instead of a measure, I made my benchmark line a column and made Power BI calculate the column's max value.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors