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 Community,
I have a requirement to write a measure to count all items if a date is great than 180 days from today.
Solved! Go to Solution.
Hi @CollabTechie ,
Not sure if I understand, but this counts any date from 180 days ago to today in the table.
If date = IF(MAX(SP_SiteOwners[Last Activity On])>TODAY()-180,1,0)
sum = SUMX(SP_SiteOwners,[If date])
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel
Proud to be a Super User!
Hi @CollabTechie ,
Not sure if I understand, but this counts any date from 180 days ago to today in the table.
If date = IF(MAX(SP_SiteOwners[Last Activity On])>TODAY()-180,1,0)
sum = SUMX(SP_SiteOwners,[If date])
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel
Proud to be a Super User!
@CollabTechie ,
If you put the second measure on the table it works as well.
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel
Proud to be a Super User!
Hi @CollabTechie ,
And if you were asking for more than 180 days in the future, change the first measure to:
More than 180 days in the future = SUMX(SP_SiteOwners,IF(MAX(SP_SiteOwners[Last Activity On])>TODAY()+180,1,0))
and point the sum measure to this one.
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel
Proud to be a Super User!
User | Count |
---|---|
123 | |
77 | |
62 | |
50 | |
48 |
User | Count |
---|---|
175 | |
125 | |
61 | |
60 | |
58 |