Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe'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
Hi,
I have a problem with the data in the column, it is showned as 1/2019 , 10/2019.. etc. How can I add a "0"and it becomes 01/2019, 02/2019..etc. Thank you!
Solved! Go to Solution.
Power Query solution:
Add this as new step, replace Source with your PreviousStepName and "Column1" with your column name you want to change.
= Table.TransformColumns(Source, {{"Column1", each Text.PadStart(_, 7, "0"), type text}})
DAX solution:
Create new calculated column, change Column1 to your column name.
CorrectDate = IF(LEN([Column1]) = 6, "0" & [Column1], [Column1])
@Andioli
Assuming you column data type is date, select the column and on top ribbon you will find different formattitng options and choose the appropriate one. For exmaple:
If the post helps please give a thumbs up
If it solves your issue, please accept it as the solution to help the other members find it more quickly.
Tharun
@Andioli
Assuming you column data type is date, select the column and on top ribbon you will find different formattitng options and choose the appropriate one. For exmaple:
If the post helps please give a thumbs up
If it solves your issue, please accept it as the solution to help the other members find it more quickly.
Tharun
Power Query solution:
Add this as new step, replace Source with your PreviousStepName and "Column1" with your column name you want to change.
= Table.TransformColumns(Source, {{"Column1", each Text.PadStart(_, 7, "0"), type text}})
DAX solution:
Create new calculated column, change Column1 to your column name.
CorrectDate = IF(LEN([Column1]) = 6, "0" & [Column1], [Column1])
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 7 | |
| 6 | |
| 5 |