The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi @tameismael
According to the syntax of DATEIFF function, start_date and end_date should be a scalar datatime value. Scalar value means it’s a single value but not something like a column or table. For more details about DATEDIFF, please refer to DATEDIFF.
Please try to replace the part of DATEDIFF as the following:
DATEDIFF(MINX('Table','Table'[Start of Week]),MAXX('Table','Table'[End of Week]),WEEK).
Then you will get the count of weeks between every start data and every end date.
Best Regards,
Community Support Team _ Caiyun
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. If you still have questions, please feel free to let me know. Thanks in advance!
Hi @tameismael
According to the syntax of DATEIFF function, start_date and end_date should be a scalar datatime value. Scalar value means it’s a single value but not something like a column or table. For more details about DATEDIFF, please refer to DATEDIFF.
Please try to replace the part of DATEDIFF as the following:
DATEDIFF(MINX('Table','Table'[Start of Week]),MAXX('Table','Table'[End of Week]),WEEK).
Then you will get the count of weeks between every start data and every end date.
Best Regards,
Community Support Team _ Caiyun
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. If you still have questions, please feel free to let me know. Thanks in advance!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
19 | |
19 | |
18 | |
14 |
User | Count |
---|---|
42 | |
35 | |
24 | |
20 | |
20 |