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

Duplicate date showing up twice

For some reason 12/31/2017 is showing up twice in a chart instead of showing 1/1/2018. The sales number is right but showing the wrong date. The date is coming from the sales order table but the same thing happens if i use the calendar table. Any ideas?

Screen Shot 2018-11-19 at 5.38.20 PM.png

 

 

 

16 REPLIES 16
Anonymous
Not applicable

I'd be expecting that the answer lies within the FiscalDay data.  My expectation is that you have data where FiscalDay is 365 and other data where FiscalDay is 1 for that same date.

Anonymous
Not applicable

But it shows up wrong too if I just use my order table date and net sales. Also it shows up correctly online when published.
Anonymous
Not applicable

Can you post some sample data, perhaps some can take a look at it.  Its going to be very hard to speculate from the details so far.

Anonymous
Not applicable

Another weird thing is when i export to excel from desktop it shows a time of 11pm for the 12/31/17 that should be 1/1/18

Screen Shot 2018-12-05 at 1.40.22 PM.png

Anonymous
Not applicable

If you transform the date data type to just Date in Power Query, it should work.  Since there are different times at then of our dates they are actually two different periods, even if we format as days.  What we see doesnt always match what is actually there.  

Anonymous
Not applicable

It was already on Date only in power bi

Anonymous
Not applicable

can you post your file?

Anonymous
Not applicable

Unfortunately it has too much confidential data. The weird thing is that Power BI Online shows the data correct. 

Anonymous
Not applicable

hm. that is odd... I'm still thinking there is something up with the actual date field. any chance you can just get that column and send as is?  Just hard to trouble shoot without actually seeing something

Anonymous
Not applicable

I have two sheets for my data, 1 2017 and 1 2018. Here are the 2 coloumns of dates from that. 

https://www.dropbox.com/s/shyooxfuy6ekf93/Dates.xlsx?dl=0

 

Anonymous
Not applicable

Used your data (added some random sales figures) and I don't get the duplicate in Excel or Desktop. 

Date Dupes.png

 

So, not sure what to make of that.  I'd just be sure that in Power Query you change the date completed column to Date:

date transform.png

 

Other than that, no idea what's going on....

Anonymous
Not applicable

Thanks for looking into it. Another weird thing is if i go to the data tab in PBI desktop is shows all the dates

Screen Shot 2018-12-06 at 11.12.16 AM.png

Anonymous
Not applicable

That would suggest to me that you do indeed have some differences in your DateTime data.

 

Dates are usually stored as a whole number, in a format of Days since 31/12/1899.  Time is usually stored as a decimal, where 0.5 would be midday.

 

I'd be wondering if one of your dates isn't a whole number and is thus coming up as the 11pm.  Something like 43000.96 rather than 43001.

Anonymous
Not applicable

I converted all the numbers in excel for 1/1/2018 and they were all 43101.00

Anonymous
Not applicable

did you try to do any transformations in power query to ensure all the dates are dates and nothing hanging on?

 

Anonymous
Not applicable

Sorry for the late response. The weird thing is if I just use my order data table (no calendar table) and look at it in the desktop and published to the web it is different.

Screen Shot 2018-12-05 at 9.20.18 AM.pngScreen Shot 2018-12-05 at 9.20.27 AM.png

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.