March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I am trying to get the Number of Days between two Dates, then if <= 30, I want the Original Amount to show in the New Current Column. If >= 30 AND <=60, then the Original Amount show in the New 31-60 Column. I'm not getting any DAX error using the below info, but it's showing the Original Amount in both Columns. What am I doing wrong? Any help would be appreciated.
Solved! Go to Solution.
Hi @ktipton ,
According to your description, here’s my solution.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ktipton ,
According to your description, here’s my solution.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This was exactly what I needed. THANK YOU so much!!
Hi @ktipton
Try these codes to add those columns:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
@ktipton you can simply do this and DAX will comply
but to answer your question
_dateDiffDateDay = DATEDIFF('Table'[Column1].[Date],'Table'[Column2].[Date],DAY)
with this DAX does exacty same as
'Table'[Column2]-'Table'[Column1]
_dateDiffDayDay = DATEDIFF('Table'[Column1].[Day],'Table'[Column2].[Day],DAY)
with thi DAX is only subtracting the DAY part (31-1),(30-1)
pbix is attached
Thank you for the info, but what I'm trying to do is have DAX calculate the DAYS between Invoice Date and New Date Paid off. Once it gets those days, if <= 30, then I want to take the Original Amount and it put it in the New Current Column.
For the New 31-60 Column, I want DAX to determine the days between Invoice Date and New Paid Off Date and if GREATER >= 31 and <=60 DAYS, then it would take the Original Amount an add to this new column New 31-60.
When I do my DAX queries above, I get the same amount in each aging bucket column, but I was hoping DAX could determine the days between then move the Original Amount into the correct column:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
25 | |
18 | |
15 | |
9 | |
8 |
User | Count |
---|---|
37 | |
32 | |
18 | |
16 | |
13 |