Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
My end goal is to have a table that will count the amount of closed cases/tickets within the last 24 hours and 30 days based off each tech.
columns: tech name | Closed last business day | Closed in last 30 days
John smith | 5 | 60
I was able to create a column with this:
Solved! Go to Solution.
Hi @Anonymous
You can add a "Date Closed" column with only dates from "Date/Time Closed", and change this new column to Date type. You can also change "Date/Time Closed" column to Date type if you don't need its timestamp values later.
Then create the following measures with the date column. Put them in a table visual along with Tech name column.
Closed last business day = CALCULATE(COUNT('Table'[Ticket]),ALL('Table'[Date Closed]),'Table'[Date Closed] = TODAY()-1) + 0Closed in last 30 days = CALCULATE(COUNT('Table'[Ticket]),ALL('Table'[Date Closed]),'Table'[Date Closed] < TODAY(),'Table'[Date Closed] >= TODAY()-30) + 0
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
This is excellent! Thank you for the help!!
Hi @Anonymous
You can add a "Date Closed" column with only dates from "Date/Time Closed", and change this new column to Date type. You can also change "Date/Time Closed" column to Date type if you don't need its timestamp values later.
Then create the following measures with the date column. Put them in a table visual along with Tech name column.
Closed last business day = CALCULATE(COUNT('Table'[Ticket]),ALL('Table'[Date Closed]),'Table'[Date Closed] = TODAY()-1) + 0Closed in last 30 days = CALCULATE(COUNT('Table'[Ticket]),ALL('Table'[Date Closed]),'Table'[Date Closed] < TODAY(),'Table'[Date Closed] >= TODAY()-30) + 0
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.