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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to fill the date gaps in Power Bi ??

The data does not have all the dates, I want to see blanks where there is no corresponding record. In the below diagram i have given monthly filter and its only showing the data for first 9 days as avaialble how can i show the rest of the dates will no data .pic123.JPG

 

1 ACCEPTED SOLUTION
TheMindGymnast
Frequent Visitor

Create a seperate dates table using dax 

e.g.
DATE =
ADDCOLUMNS (
CALENDAR (DATE(2001,1,1),DATE(2022,1,1)),
"DateAsInteger", FORMAT ( [Date], "DDMMYYYY" ),
"Year", YEAR ( [Date] )
)

 

Link this to the sales data and then change the settings on the table : visualizations/values to "show items wth no data"

View solution in original post

1 REPLY 1
TheMindGymnast
Frequent Visitor

Create a seperate dates table using dax 

e.g.
DATE =
ADDCOLUMNS (
CALENDAR (DATE(2001,1,1),DATE(2022,1,1)),
"DateAsInteger", FORMAT ( [Date], "DDMMYYYY" ),
"Year", YEAR ( [Date] )
)

 

Link this to the sales data and then change the settings on the table : visualizations/values to "show items wth no data"

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors