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
corbincdc
Frequent Visitor

Adding missing dates each category for a kpi dashboard

Hello - We are setting up a KPI dashboard we have target value of 10 records each day per Property Name .  I have already aggrigated the data for the number of records per day.  This shown below.  My problem is that I have missing dates as there were no records generated for that day.  

 

We need to fill in each missing date field per property.  I would be onen to using the show missing data in the calandar table however the I cannot figure out how I would assign that target. 

 

Capture2.PNG

 

 

Capture.PNG

 

 
4 REPLIES 4
Icey
Community Support
Community Support

Hi @corbincdc ,

 

Is this problem solved?

 

 

Best Regards,

Icey

corbincdc
Frequent Visitor

Thanks for the repy.  However, I am not seeing where this would add dates for all the different properties.  The first set of data below is the original data and the second one is what it needs to show. 

 

Data Set Original  
Property NameDate 
5Fifty51/18/2020
5Fifty51/20/2020
5Fifty51/22/2020
5Fifty51/24/2020
5Fifty51/27/2020
7th Street Brownstones1/18/2020
7th Street Brownstones1/20/2020
7th Street Brownstones1/22/2020
7th Street Brownstones1/24/2020
7th Street Brownstones1/27/2020
  
Transform to:  
5Fifty51/18/2020
5Fifty51/19/2020
5Fifty51/20/2020
5Fifty51/21/2020
5Fifty51/22/2020
5Fifty51/23/2020
5Fifty51/24/2020
5Fifty51/25/2020
5Fifty51/26/2020
5Fifty51/27/2020
7th Street Brownstones1/18/2020
7th Street Brownstones1/19/2020
7th Street Brownstones1/20/2020
7th Street Brownstones1/21/2020
7th Street Brownstones1/22/2020
7th Street Brownstones1/23/2020
7th Street Brownstones1/24/2020
7th Street Brownstones1/25/2020
7th Street Brownstones1/26/2020
7th Street Brownstones1/27/2020
Icey
Community Support
Community Support

Hi @corbincdc ,

 

Please check if this can meet your requirements:

 

1. Create a Calendar table.

Calendar = CALENDAR( MIN( 'Table'[Date] ), MAX( 'Table'[Date] ) )

 

2. Create relationships between the two tables.

relationship.PNG

 

3. Create Measures.

For numerical columns, create measures like so:

Value Measure = SUM( 'Table'[Value] ) + 0

 For text columns, create measures like so:

Text Measure = IF ( MAX ( 'Table'[Text] ) = BLANK (), "NULL", MAX ( 'Table'[Text] ) )

 

4. Create Table visuals.

text and value.PNG

 

For more details, please check the attached PBIX file.

 

 

Best Regards,

Icey

 

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

Create a date calendar table and join date with that date. Then use the option to display 0 data rows and filter visual where value =0.

When you put in visual use the date from date table.

 

ShowItemwithoutdata.JPG

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

 

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.