Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

How to create slicer for dates and not affect other charts

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: 

Closed last business day = IF(DATEDIFF('Support PowerBI Closed Cases'[Date/Time Closed], TODAY(), DAY) < 1,"True","False")
Which works, and when I add them to a table, i select count and it gives me the total for the entire spreadsheet, I would like it to show me the last 24 hours and last 30 days 

How woulod i be able to do this, would it be a measure or would can i use other filtering methods with date slicers?




1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

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. 

22012101.jpg

 

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) + 0
Closed in last 30 days = CALCULATE(COUNT('Table'[Ticket]),ALL('Table'[Date Closed]),'Table'[Date Closed] < TODAY(),'Table'[Date Closed] >= TODAY()-30) + 0

22012102.jpg

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

This is excellent! Thank you for the help!!

v-jingzhang
Community Support
Community Support

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. 

22012101.jpg

 

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) + 0
Closed in last 30 days = CALCULATE(COUNT('Table'[Ticket]),ALL('Table'[Date Closed]),'Table'[Date Closed] < TODAY(),'Table'[Date Closed] >= TODAY()-30) + 0

22012102.jpg

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors
Users online (4,691)