Forum Discussion

Pucca121's avatar
Pucca121
Helper II
9 years ago
Solved

ADD Hours

Hello!

 

I would like to add 3 hours on this table. I have this error message when I try to do it. Can someone explain me why and how to fix it?

 

Thank you very much

  • Power Query (M) is the language to get and transform your data into your data model.

    DAX is the language to operate on data in your data model.

    Both are completely different languages.

     

    Basically Power Query comes first and then you can further manipulate your data with DAX.

    Of course there are grey areas that can be covered by both.

    Anything you do with DAX won't be available for Power Query, so that's why you don't see your table that is created with DAX (if I'm correct).

    So for your Calendrier you can only proceed with DAX.

     

    This works for me:

  • Pucca121's avatar
    Pucca121
    9 years ago

    Thank you very much :) The formula works for me too. Now, I will see if it's the solution to my problem!

7 Replies

  • MarcelBeug's avatar
    MarcelBeug
    Community Champion

    You are mixing up DAX and Power Query (M).

    Do you want to add 3 hours to your Date field?

    Is that a date or a datetime field?

    • Pucca121's avatar
      Pucca121
      Helper II

       

      Yes, I think. When I go to EDIT QUERY, I don't see this table, I don't know why...

      Is a major difference between DAX and Power Query (M)??

      • MarcelBeug's avatar
        MarcelBeug
        Community Champion

        Power Query (M) is the language to get and transform your data into your data model.

        DAX is the language to operate on data in your data model.

        Both are completely different languages.

         

        Basically Power Query comes first and then you can further manipulate your data with DAX.

        Of course there are grey areas that can be covered by both.

        Anything you do with DAX won't be available for Power Query, so that's why you don't see your table that is created with DAX (if I'm correct).

        So for your Calendrier you can only proceed with DAX.

         

        This works for me: