Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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
Solved! Go to Solution.
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:
Thank you very much 🙂 The formula works for me too. Now, I will see if it's the solution to my problem!
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?
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)??
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:
Thank you very much 🙂 The formula works for me too. Now, I will see if it's the solution to my problem!
Hello!
The formula works but it doesn't fix my problem, which is:
When a select a day, it returns me the sales informations of the day after. So, I tried to fix this changing the calendar hour, and put it 3 hours after midnignt, but it doesn't work.
I have these TIME formulas:
Calendrier
= CALENDARAUTO()
Salesday
= CALCULATE(SUM(Calendrier[Is Working Day]);DATESBETWEEN(Calendrier[Date];RELATED('Data Mailing'[Date premiere vente]); Set[datedecredit]))
Is Working Day
= SWITCH(WEEKDAY(Calendrier[Date]);7;0;1;0;1)
I also have a date in a table. In fact, each sale has a row with a date. Is the query, it's a date but without hour.
Can you help me please?? 🙂
P.
No. I don't think I can help you. My DAX knowledge is rather limited.
My suggestion would be to create a new topic (as this one is already marked as answered) and explain what you want to achieve.
I would focus on the phenomenon that you select a day and you get sales informations of the day after.
That is very strange so you should clarify and explain with sharing your code and some example data. In a new topic.
Thank you 🙂
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
119 | |
83 | |
47 | |
42 | |
33 |
User | Count |
---|---|
190 | |
79 | |
72 | |
52 | |
46 |