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.
Hi all,
on a table, I have a column for the Customer ID and a Column for the licence expiry date.
What I would like to do is extract the list of CustomersID where the membershop expired during the past 90 days.
I created a first quick measure which will select the max date for each customer:
LatestExpiry = MAXX( KEEPFILTERS(VALUES('Items'[InCustID])), CALCULATE(MAX('Items'[ExpiryDate])) )
Then, I created a second measure that should return only those records where the max expiry date is in the past 90 days
ExpiredLast90Days = IF(TODAY()>[LatestExpiry] && DATEDIFF(TODAY(),[LatestExpiry],day)<=90,1,0)
but it does not work as intended. Any help, please?
Solved! Go to Solution.
I changed the second measure as follows and now it works
ExpiredLast90Days = IF(TODAY()>[LatestExpiry] && [LatestExpiry]>= TODAY()-90 ,1,0)
I changed the second measure as follows and now it works
ExpiredLast90Days = IF(TODAY()>[LatestExpiry] && [LatestExpiry]>= TODAY()-90 ,1,0)
Is there a way to show Customer IDs where the expired date is NOT in the last 30,60, 90 days etc.?
User | Count |
---|---|
123 | |
76 | |
62 | |
50 | |
50 |
User | Count |
---|---|
175 | |
125 | |
60 | |
60 | |
58 |