The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
My task is simple yet I cannot find the answer.
I want to return the ExpirationDate value for each row, but if it has not yet expired, then return NOW()
In C# myDate = Math.Min(expirationDate, Now())
The MIN aggregator is looking for the entire table, but I just want to apply the comparison for each row agains a scalar.
Thanks,
Uri
Solved! Go to Solution.
Create a new column like:
Column = IF(ISNULL([expirationDate]),NOW(),[expirationDate])
Create a new column like:
Column = IF(ISNULL([expirationDate]),NOW(),[expirationDate])