Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I have a table that contains warehouse locations and a "last verified date". I would like to count locations that were verified during the last two weeks from today.
Thanks for your help,
NH
You can do something like this:
CALCULATE(
COUNTROWS( Table ), FILTER(Table, DATEDIFF(Table[Last Verif Date], TODAY(), DAY) <= 14) )
The FILTER argument filters down to rows whose [Last Verif Date] is within 14 days of today. You may want to change it to less than instead of less than or equal to, depending on your logic.
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
118 | |
101 | |
71 | |
61 |