5 Ways to Create a Date  in Power Query

5 Ways to Create a Date in Power Query

Goodly

2 года назад

22,242 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@cosmee510
@cosmee510 - 27.12.2023 14:01

Hai Goodly ,
I have an issue
In power query editor date column is in format dd-mm-yyyy
But I created in the format of yyyy-mm-dd
Using

Text.From(Date.Year([loaddate])) & "-" & Text.From(Date.Month([loaddate])) & "-" & Text.From(Date.Day([loaddate]))


The output is come in yyyy-mm-dd
But I am trying to convert into date data type
This custom column values also changing into dd-mm-yyyy

What should I do now ...
I tried many ways ...
Kindly help

Ответить
@rugshavishnu6481
@rugshavishnu6481 - 19.12.2023 12:57

Hi Chandeep,
Could you please advise how to treat null values in the date column?

Ответить
@adnanshaikh2403
@adnanshaikh2403 - 22.11.2023 07:10

Very helpful

Ответить
@XenArena
@XenArena - 28.09.2023 18:04

How would you get the date from
Year and Week of the Year
in Power Query?

Ответить
@ArifulIslam-gs6uy
@ArifulIslam-gs6uy - 08.09.2023 11:13

Great Tips

Ответить
@maryjavasilyevna861
@maryjavasilyevna861 - 14.08.2023 01:09

Thank you for detailed explanation, Chandeep!

Ответить
@eroteam2
@eroteam2 - 01.06.2023 18:25

Man, what a great video, I was trying it for 30 min haha, you helped me a lot!

Ответить
@KedarKulkarni1
@KedarKulkarni1 - 05.04.2023 23:30

Hi Chandeep, nice video indeed. But what I need is to how to get yyyy-mm and mmm-yyyy out from the date.

Can you please kindly help with that?

Ответить
@user-sk5ib4sn3y
@user-sk5ib4sn3y - 01.04.2023 00:22

Great video! How did you get the Month from 1 digit to 2 digits? like 1 to 01 ?

Ответить
@billgillaspey9036
@billgillaspey9036 - 28.03.2023 06:04

The final method, no doubt, looks nice since everything is done in a single step. But it does beg the question: is there a purely technical basis for calling it "better" than doing the transformation using multiple steps? I.e., Could one, perhaps, to measure the speed (or maybe there is a better metric) of "one step" code vs code in several PQ steps? just curious...

Ответить
@hasnahas972
@hasnahas972 - 08.03.2023 20:28

You saved my day with the second trick, thanks a lot

Ответить
@niniashs
@niniashs - 03.11.2022 18:50

So usefull

Ответить
@atanasprodatanasov9233
@atanasprodatanasov9233 - 06.10.2022 13:57

That video is brilliant!

Ответить
@Faisal63045
@Faisal63045 - 21.09.2022 17:53

Hi is there a formula or PQ way to change any transactions time that come between 12:00:00 AM and 7:59:59 AM To be 8:00:00 AM which is the start of working hour.

Ответить
@killerhunk1
@killerhunk1 - 19.09.2022 17:38

You are awesome!!! Thanks a lot.

Ответить
@thebhaskarjoshi
@thebhaskarjoshi - 22.06.2022 15:48

Great date tips

Ответить
@wildecorrea6477
@wildecorrea6477 - 15.06.2022 17:59

The last solution was WACKY, man!!! Congratulations on your videos! 💥🦾👊👏👏👏💯🔝

Ответить
@GJD987
@GJD987 - 04.05.2022 00:58

Great video as always - My issue with dates is :
I frequently get an issue with dates in that when the data is loaded to excel, they revert to numbers in the spreadsheet. This is even though the data type is set to date in PQ. Fixed by changing the formatting of the cells in Excel to date , but a data refresh brings back the issue, requiring re-formatting
Why does this happen and how can it be fixed ?- many thanks

Ответить
@MichalTyborski
@MichalTyborski - 07.04.2022 19:29

Hi!
I have a question from example 2. How to do it in DAX?
I have month (April) and year(2022), how to make from these 2 columns column date(2022-04-01)?

Ответить
@lalpetta7468
@lalpetta7468 - 05.04.2022 17:16

Hi Sir

How can we add extra day for already in date column

Ответить
@mirrrvelll5164
@mirrrvelll5164 - 31.03.2022 23:46

Amazing

Ответить
@iugaming6732
@iugaming6732 - 31.03.2022 09:09

Hi Chandeep,

I watched some of your videos and all are great. I want to ask my dax issue but it is not related to your topic.

Can you tell me what's wrong why I get correct data on 8 but not on 7?

Tickets for 7 days = CALCULATE(COUNTA('Tickets'[Ticket ID]) , FILTER (('Tickets', 'Last Refresh'[Date.Last Refreshed] - 'Tickets' [Created])<=8)))

Please help. Thank you.

Ответить
@martyc5674
@martyc5674 - 31.03.2022 01:09

Great Tips- thanks for sharing.

Ответить
@vijaygadhavi5122
@vijaygadhavi5122 - 30.03.2022 20:28

Dear bro,

I need to second last max date with multiple criteria in power query

How to create M function

Ответить
@GeertDelmulle
@GeertDelmulle - 29.03.2022 23:46

Very nice! That second trick was quite surprising to me — never would have thought that it would work.
Great video! :-)

Ответить
@franciscom.paredesarias2356
@franciscom.paredesarias2356 - 29.03.2022 16:43

Thank you very much for sharing, Greetings from Chile.

Ответить
@kirtithorat4621
@kirtithorat4621 - 29.03.2022 16:28

How do we change minimum target value after every 3 months in power query and Power BI?

Ответить
@saratoffice
@saratoffice - 29.03.2022 06:25

How to convert month name to month number

Ответить
@wayneedmondson1065
@wayneedmondson1065 - 29.03.2022 05:06

Hi Chandeep. Great date tips for Power Query! Love it when you wrap it all up in one statement. Thanks for demonstrating. Thumbs up!!

Ответить
@viveksharma4193
@viveksharma4193 - 28.03.2022 19:15

Thank you very much, sir, I'm struggling with this concept often .. but the last trick is so cool .. will help a lot in my future assignment.

Ответить
@hrchandran
@hrchandran - 28.03.2022 18:53

I have a start date and end date. I want to create a list of month start dates between the from and to dates.

Ответить
@rakeshchaudhary1110
@rakeshchaudhary1110 - 28.03.2022 15:48

🙏 it's amezing support

Ответить