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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
lowdman87
Frequent Visitor

Future dates showing in chart when future dates do not exist in the table.

Hello, I have a chart I am displaying with the Date on the X-axis and a aggregated value (from a measure) on the y-axis.  I am using a Date table for my date.  The current date is 9/5/24.  Date Table DAX is = CALENDAR(MIN(TRDT)-30,TODAY()+1), where TRDT represents the transaction date column I am using for my table.  When reviewing the output of the date table, dates show as expected with the maximum date being 9/6/24.  When displaying this in the chart below, dates for Q4, 2024 show up even though there is no data for that time period and it is in the future.  I can set a visual filter to filter out the month, for example, and I can remove December, and December will be removed from all years.  But when I try to set an Advanced Filter to remove everything prior to today, it does not affect the visual.  What could be causing this to show up when no dates are in the table?  And is there a way to exclude them?

 

I have tried a calculated column, but because the future dates do not exist in the table, it does not affect them.  

 

 

lowdman87_1-1725553051455.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@lowdman87 , make sure you have not used the option "Show Item with no Data" on right click on date hierarchy

 

ShowItemwithoutdata.JPG

 

Or you can have measures to control

 

Remove outside range  =
var _min = minx(ALLSELECTED(Table), Table[Date])
var _max = maxx(ALLSELECTED(Table), Table[Date])
return
if(max('Date'[Date])>=_min && Max('Date'[Date]) <=_max, [Your Measure] BLANK())

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@lowdman87 , make sure you have not used the option "Show Item with no Data" on right click on date hierarchy

 

ShowItemwithoutdata.JPG

 

Or you can have measures to control

 

Remove outside range  =
var _min = minx(ALLSELECTED(Table), Table[Date])
var _max = maxx(ALLSELECTED(Table), Table[Date])
return
if(max('Date'[Date])>=_min && Max('Date'[Date]) <=_max, [Your Measure] BLANK())

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Thanks.  I did not have the "Show items with no data" checked, but the measure did resolve my issue.  Thank you.  

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.