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

Power BI error BUG with date

I have a column for day, another for month and another one for year.

I´ve created a new column, merging DAY & "/" & MONTH & "/" & YEAR, but sometimes I get the format DD/MM/YY, sometimes MM/DD/YY.

I belive this is an error that need to be fixed. I had a really hard time to understand why my report had wrong data in it.

 

Capturarrrr.PNG

 

1 ACCEPTED SOLUTION
KHorseman
Community Champion
Community Champion

I think it's because you're forcing it to parse a concatenated string as a date. It would probably be more reliable to use a DATE() formula, which explicitly tells it which number is the month and which is the day.

 

Dat formatada fat = DATE(CV_BILLINGLOGGSB[ANO_FATURAMENTO], CV_BILLINGLOGGSB[Mês da fatura], CVBILLINLOGGSB[Dia])





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
KHorseman
Community Champion
Community Champion

I think it's because you're forcing it to parse a concatenated string as a date. It would probably be more reliable to use a DATE() formula, which explicitly tells it which number is the month and which is the day.

 

Dat formatada fat = DATE(CV_BILLINGLOGGSB[ANO_FATURAMENTO], CV_BILLINGLOGGSB[Mês da fatura], CVBILLINLOGGSB[Dia])





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




vanetti
Frequent Visitor

When transforming the data type to "text" I get it right, but I do want to use the "date" type.

 

Capturasdsr.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.