Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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 @Anonymous ,
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 @Anonymous ,
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!
@Anonymous ,
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 @Anonymous ,
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 |
---|---|
98 | |
76 | |
74 | |
49 | |
26 |