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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
lgo
Frequent Visitor

Problem with error handling and dates

Hi everybody!

 

I currently have some dates with the day with "00", let-s say, the sources does not have idea about the day so it is reported as 00. So some of the dates are 00-08-2019. As the column is recognized as a date, those values are reported as a cero. 

 

I find the same situation in other columns, but, it they are not recognized as dates, i have the time to replace -00 for -01 and then change it to date format, and i still keep those values!

 

What can I do for the power query editor to leave the original values for me to able to change them before finding errors? (I have already tried to unclick the option to recognize the data type, but i has not worked so far). 

 

I do not know if i explain mayself in a good way... I hope you guys understand. Thank you in advance!

1 ACCEPTED SOLUTION
ImkeF
Community Champion
Community Champion

Hi @lgo ,

you have 2 choices:

 

1) remove the automatically created changed step manually by clicking the cross

2) manually edit the automatically created M code and delete only the column whose formatting you want to skip:

 

image.png

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

4 REPLIES 4
ImkeF
Community Champion
Community Champion

Hi @lgo ,

you have 2 choices:

 

1) remove the automatically created changed step manually by clicking the cross

2) manually edit the automatically created M code and delete only the column whose formatting you want to skip:

 

image.png

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

lgo
Frequent Visitor

Thank you so much for your reply! but i can't see the same in my screen!

 

Capture.PNG

lgo
Frequent Visitor

So I have discovered something further....

 

I have all the tables without Data types in the columns...when I do merge + then expand = some columns got the Data type! Do you know why this is happening?

 

Thank in advance,

 

Laura.

ImkeF
Community Champion
Community Champion

Hi Laura,

you have to enable the Formula Bar in the View-Tab like so:

 

image.png

 

You should check the Source-queries (the current one and the ones you're merging). Fix the corrections you want to make there before merging.

Usually you loose your types during merge/expand-operations. This is a known limitation.

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.