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
Hi all, I need to do a calculation which use clearing date minus due date and anything more than 0 is considered as on time payment, and anything less than 0 is considered as late payment. How can i do that? What is the DAX formula for this?
Solved! Go to Solution.
@daydream1989 , You can create a measure like
new column =
var _diff = datediff([clearing date],[dure Date], day)
return
Switch( True() ,
_diff > = 0, "On Time"
"Late"
)
Or you can create a measure
On time = countrows(filter(Table, datediff([clearing date],[dure Date], day) ) )
@daydream1989 , You can create a measure like
new column =
var _diff = datediff([clearing date],[dure Date], day)
return
Switch( True() ,
_diff > = 0, "On Time"
"Late"
)
Or you can create a measure
On time = countrows(filter(Table, datediff([clearing date],[dure Date], day) ) )
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 |
---|---|
134 | |
91 | |
90 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |