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 convert an equation I used in excel into a DAX equation to create a calculated column to add to data table that is already loaded into Excel.
Excel Equation:
Status=IF(DATEVALUE(A5)<$D$1,"Expired",IF(DATEVALUE(A5)-30<$D$1,"Expiring","Active"))
where A5 is Expected Expiration Date and Date is = TODAY()
What would be a similar DAX equation?
@alanphamvistra4, Create a calculated column in your table using DAX,
Status = SWITCH(
TRUE(),
'Date'[Expected Expiration Date] < TODAY(),
"Expired",
DATEADD('Date'[Expected Expiration Date],-30,DAY) < TODAY(),
"Expiring",
"Active"
)
Hope this helps!
Hi, Try this.
Column Calculated = IF(DATEVALUE([COLUMN WITH A5])<TODAY(),"EXPIRED",IF(DATEADD([COLUMN WITH A5],-30,DAY)<TODAY(),"EXPIRING","ACTIVE")
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
106 | |
98 | |
65 | |
54 |