This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi all
How can I convert a date in format "Apr 01 2019" to "April 2019" for example and using power query?
https://1drv.ms/u/s!ApgeWwGTKtFdhjOrLr9_z4xQWZca?e=KpC6mb
Thanks.
Solved! Go to Solution.
@o59393 ,
You have to go to Transform Data/Edit Query and use the Custom Column option.
In Dax , you can try like
format(DATEVALUE("Apr 01 2019"),"MMMM-YYYY")
If it a static value you can use in measure too. Else in measure use some aggregation.
Hi @o59393,
if you change the date in the desired format with Power Query the result will end up in a string. Sort order is alphabetical.
If you want to keep the date intact format it in model view:
Regards FrankAT
Perhaps:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WciwoUjAwVDAyMLRUitWJVvJKzIPwjQzAfLfUJAUDYwTfqzRHwdAUyo8FAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
#"Added Custom Column" = Table.AddColumn(Source, "Custom", each Text.Combine({Date.ToText(Date.From([Column1]), "MMMM"), " ", Date.ToText(Date.From([Column1]), "yyyy")}), type text)
in
#"Added Custom Column"
Hi
Where do I have to paste that?
As an added custom column?
Thanks!
sorry new to this formula builder. I am trying yearmonth. not working
yearmonth = FORMAT('vw_datamart_Activities'[dt_start],"YYYYMM")
This is more of the downsteam table
feel free to adjust our dashboard. AppWorx_Azure
That was the code behind the query. You would create a blank query and then paste that code into Advanced Editor. I think I created that code using Add Column From Examples.
@o59393 ,
You have to go to Transform Data/Edit Query and use the Custom Column option.
In Dax , you can try like
format(DATEVALUE("Apr 01 2019"),"MMMM-YYYY")
If it a static value you can use in measure too. Else in measure use some aggregation.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 24 | |
| 23 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 35 | |
| 30 | |
| 23 | |
| 22 |