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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Jsummers
Helper I
Helper I

Some dates not recognised as dates & creating 'blank' column in bar chart

I have imported 2 tables from SQL and created a calendar table.  In the 2 imported tables, there are 2 columns with dates in them, some of the dates might be the same, some are different.  I have created the relationship from the 2 imported tables to the calendar using the date columns.  I have then created a bar chart for one table of completed audits dates, this produces a bar chart counting the dates per month and displaying correctly.  When I repeat this for the second table (scheduled audits), some of the dates are not recognised and display in a column entitled 'blank'....but they are not blank.  On the scheduled audits table, there are 99 rows and all have a scheudled date in them.  The total on the bar chart (blue) comes to 99 also.

 

Jsummers_2-1671103152927.png

 

This is what the date column looks like for the scheduled audits, it is date in the data type and formatted the same as the completed audits date column.  

Jsummers_1-1671103052742.png

 

Table relationships

Jsummers_5-1671103440712.png

 

 

This is the same settings for both relationships:

Jsummers_4-1671103312495.png

 

Please can someone advise how I get these dates to be recognised as dates so the bar chart shows correctly?

Many thanks

Julia 

 

1 ACCEPTED SOLUTION
Jsummers
Helper I
Helper I

I have found the solution, even though in data view the date column was set as date, when I went into transform data, the date column was not set as date.  I have now set that as date and my chart is looking correct!

View solution in original post

3 REPLIES 3
Jsummers
Helper I
Helper I

I have found the solution, even though in data view the date column was set as date, when I went into transform data, the date column was not set as date.  I have now set that as date and my chart is looking correct!

Mahesh0016
Super User
Super User

can you share demo_data file for more understanding.

After some more playing around, I have found that it is something to do with the calendar and the relationship between the 2 tables.  If I load the dates in and create a bar chart without linking to the calendar table, the bar chart is correct.  If I create a relationship between the scheduled dates & the calendar, then some appear as 'blank'?

 

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

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