Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi guys,
I'm trying to format my date value.
I would like to have the date format as:
"YYYY-mm-dd"
Can somebody help me out with this novice question?
Thanks
Solved! Go to Solution.
You don't "format" dates in Power Query. To convert that to just a date though, you would wrap the above with DateTime.Date, so :
DateTime.Date(DateTime.LocalNow())
That will strip the time component off.
If you are using that date field in a query that gets loaded into Power BI, that is where you can change the format of how the date looks. Select the Date field in the field listing after the data has loaded, then on the Column Tools menu, change the format, which doesn't affect the data, just how it is shown.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingHi @Anonymous ,
You can change the date format outside Query Editor. Apply your query changes.
Under FIELDS pane click on your date column, then on the top ribbon you can find different date formats as shown below:
Thanks,
Pragati
You don't "format" dates in Power Query. To convert that to just a date though, you would wrap the above with DateTime.Date, so :
DateTime.Date(DateTime.LocalNow())
That will strip the time component off.
If you are using that date field in a query that gets loaded into Power BI, that is where you can change the format of how the date looks. Select the Date field in the field listing after the data has loaded, then on the Column Tools menu, change the format, which doesn't affect the data, just how it is shown.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingIf 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 |
|---|---|
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |