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
StidifordN
Helper III
Helper III

Future dates displayed in table - possible?

Is it possible to display future dates in a table, similar to how you can display future dates (via Items with no Data) in a bar chart?

 

Image below is my example.

Capture32123.PNG

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @StidifordN 

I think you want to show all values in X axis(Year/Month) even if there is no data in that Year/month.

Try to build a related Date table , add Year column and MonthName column from this Date table into your bar chart Axis and set the columns in Axis to show values with no data.

Due to I don't know your data model, I build a sample to have a test.

My Sample:

1.png

Calendar table:

Calendar = ADDCOLUMNS(CALENDAR(DATE(2021,01,01),DATE(2021,12,31)),"YEAR",YEAR([Date]),"MONTH",MONTH([Date]),"MONTHNAME",FORMAT([Date],"MMMM"))

Sort MonthName column by Month column.

4.png

Relate two tables by Date columns.

2.png

Build your Bar chart as below.

3.png

Don't forget to set YEAR and MONTHNAME columns to show items with no data.

5.png

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

View solution in original post

2 REPLIES 2
v-rzhou-msft
Community Support
Community Support

Hi @StidifordN 

I think you want to show all values in X axis(Year/Month) even if there is no data in that Year/month.

Try to build a related Date table , add Year column and MonthName column from this Date table into your bar chart Axis and set the columns in Axis to show values with no data.

Due to I don't know your data model, I build a sample to have a test.

My Sample:

1.png

Calendar table:

Calendar = ADDCOLUMNS(CALENDAR(DATE(2021,01,01),DATE(2021,12,31)),"YEAR",YEAR([Date]),"MONTH",MONTH([Date]),"MONTHNAME",FORMAT([Date],"MMMM"))

Sort MonthName column by Month column.

4.png

Relate two tables by Date columns.

2.png

Build your Bar chart as below.

3.png

Don't forget to set YEAR and MONTHNAME columns to show items with no data.

5.png

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

amitchandak
Super User
Super User

@StidifordN , One way it do +0, but that will display all.

 

Now control that via some selected date range

 

example measure

0 between range
Measure = var _1= SUM(Opportunity[Opportunity count]) +0
var _min = minx(ALLSELECTED('Calendar'), 'Calendar'[Date])
var _max = maxx(ALLSELECTED('Calendar'), 'Calendar'[Date])
return
CALCULATE(if(max('Calendar'[Date]) <_min || max('Calendar'[Date]) >_max , BLANK(), _1))

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

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! Prices go up Feb. 11th.

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.

Jan NL Carousel

Fabric Community Update - January 2025

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