5 Ways to Create a Date 📅 in Power Query

Поділитися
Вставка
  • Опубліковано 28 лис 2024

КОМЕНТАРІ • 52

  • @GoodlyChandeep
    @GoodlyChandeep  Рік тому

    Check out our newly launched M Language course ↗ - goodly.co.in/learn-m-powerquery/

  • @michellebrayton3570
    @michellebrayton3570 9 місяців тому

    I have really enjoyed your style of teaching. You are really a master of breaking it down and making it look easy. Thank you for your content. I have learned more in a day of watching your videos then I have in weeks, struggling to learn all that is possible with Power Query. Your explanation of the difference between Excel Power Query and Power BI.... was priceless.... I now know exactly what Power Query in Excel is... Power Pivot etc... Thank you. I am going to sign up for your class on the M language.

    • @GoodlyChandeep
      @GoodlyChandeep  9 місяців тому +1

      looking forward to seeing you in the course 🙏🏼🙏🏼😀😀

  • @cosmee510
    @cosmee510 11 місяців тому

    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

  • @GeertDelmulle
    @GeertDelmulle 2 роки тому +1

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

  • @wayneedmondson1065
    @wayneedmondson1065 2 роки тому

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

  • @maryjavasilyevna861
    @maryjavasilyevna861 Рік тому

    Thank you for detailed explanation, Chandeep!

  • @GJD987
    @GJD987 2 роки тому +3

    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

    •  Рік тому

      The same issue here. This is a crazy behavior when you process this date values in VBA. Filters created by code doesn't work.
      Did you find any solution in past months?

  • @viveksharma4193
    @viveksharma4193 2 роки тому +1

    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.

  • @eroteam2
    @eroteam2 Рік тому

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

  • @hasnahas972
    @hasnahas972 Рік тому

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

  • @franciscom.paredesarias2356
    @franciscom.paredesarias2356 2 роки тому

    Thank you very much for sharing, Greetings from Chile.

  • @wildecorrea6477
    @wildecorrea6477 2 роки тому +1

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

  • @rugshavishnu6481
    @rugshavishnu6481 11 місяців тому

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

  • @sabeelahmed1157
    @sabeelahmed1157 5 місяців тому

    Amazing way of teaching

  • @NjemileSiwatu
    @NjemileSiwatu Рік тому

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

  • @martyc5674
    @martyc5674 2 роки тому

    Great Tips- thanks for sharing.

  • @atanasprodatanasov9233
    @atanasprodatanasov9233 2 роки тому

    That video is brilliant!

  • @Faisal63045
    @Faisal63045 2 роки тому

    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.

  • @helmutwasser5441
    @helmutwasser5441 8 місяців тому

    Hi Chandeep, thank you for your video but in my case, it did not help me. Could you help me with this issue. I have a data import from hundreds of CVS files, and they all look the same. The date does not come as a real date. I am getting for example in the Date Row 45371.49955 and I cannot get that converted to a Date. I checked that in excel and easily got a DateTime --> 20.03.2024 11:59:21

  • @iugaming6732
    @iugaming6732 2 роки тому

    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])

  • @billgillaspey9036
    @billgillaspey9036 Рік тому

    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...

  • @kppaniraj
    @kppaniraj 9 місяців тому

    Can we solve a problem where a couple of dates are in Indian format and couple are in American format in the same column and I want only the dates in American format to be converted to Indian Format, Please guide

  • @adnanshaikh2403
    @adnanshaikh2403 Рік тому

    Very helpful

  • @thebhaskarjoshi
    @thebhaskarjoshi 2 роки тому

    Great date tips

  • @killerhunk1
    @killerhunk1 2 роки тому

    You are awesome!!! Thanks a lot.

  • @thanhphongle7325
    @thanhphongle7325 4 місяці тому

    Usefull, love U

  • @ArifulIslam-gs6uy
    @ArifulIslam-gs6uy Рік тому

    Great Tips

  • @MichalTyborski
    @MichalTyborski 2 роки тому

    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)?

    • @GoodlyChandeep
      @GoodlyChandeep  2 роки тому

      Create a new column, something like this
      Date Column = DATEVALUE ( "1-" & Table[MonthName] & "-" & Table[Year] )
      The order of concatenation - DD-MM or MM-DD will depend on your local PC settings. But this should work

  • @mirrrvelll5164
    @mirrrvelll5164 2 роки тому

    Amazing

  • @rakeshchaudhary1110
    @rakeshchaudhary1110 2 роки тому

    🙏 it's amezing support

  • @XenArena
    @XenArena Рік тому

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

  • @lalpetta7468
    @lalpetta7468 2 роки тому

    Hi Sir
    How can we add extra day for already in date column

    • @GoodlyChandeep
      @GoodlyChandeep  2 роки тому

      You mean date + 1?
      If yes you can use the formula =Date.AddDays([Date] + 1)

  • @kirtithorat4621
    @kirtithorat4621 2 роки тому

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

  • @hrchandran
    @hrchandran 2 роки тому

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

  • @vijaygadhavi5122
    @vijaygadhavi5122 2 роки тому

    Dear bro,
    I need to second last max date with multiple criteria in power query
    How to create M function

  • @saratoffice
    @saratoffice 2 роки тому

    How to convert month name to month number

    • @GoodlyChandeep
      @GoodlyChandeep  2 роки тому +1

      Create a new column in power query and use this code
      = Date.Month ( Date.From ( [MonthNameColumn] & "2020" ) )

  • @KedarKulkarni1
    @KedarKulkarni1 Рік тому

    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?

  • @niniashs
    @niniashs 2 роки тому

    So usefull