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 have two dates column and i want to find the difference between them to calculate the number of days, so i am using the following expression but the problem is i need it to count the end date as well, i need to add one extra day to the result. How to do this? Is it possible to modify the expression below?
Days between = DATEDIFF(Orders[Order Date],Orders[Ship Date],DAY)
Also, what is the difference between using a calculated column for this purpose instead of a DAX measure? Is the calculated column a better approach? Why?
Solved! Go to Solution.
@Anonymous
Days between = DATEDIFF(Orders[Order Date],Orders[Ship Date],DAY) + 1
@Anonymous
Days between = DATEDIFF(Orders[Order Date],Orders[Ship Date],DAY) + 1
Hi there,
I thought that much as well, but when I tried + 1 it has also added extra lines in my visual as 1's.
My dates are MIN and MAX from DimDates[Date] for FactTable[Category] inactive relationship to FactTable[Date Key]. Got result via CROSSFILTER and USERELATIOSHIP. So assuming that +1 doesn't want to work properly because of that?
Thank you!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
85 | |
65 | |
51 | |
45 |
User | Count |
---|---|
217 | |
88 | |
81 | |
65 | |
56 |