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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
aashton
Helper V
Helper V

Search multiple date fields

Hello,

I have a table Tickets, that has ID, owner, date created, date closed, date escalated, etc.  I want the user to be able to pick a date range from a slicer and have multiple cards that show how many tickets created, closed, escalated, etc within that time frame.  I'm confused as to how to set that up?  I presently have a Tickets table and a Date table, but only Date Created is linked to the Date table.

 

Thanks.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @aashton 

You could only create one active relationship between two tables( only Date Created is linked to the Date table).

Here I suggest you calcualte the count of Tickets which are in date range by measure.

My Sample:

1.png

Relationship is the same like yours.

2.png

Meausres:

 

Count of date created = COUNT('Sample'[date created])+0
Count of date closed = 
VAR _DateRange = VALUES('Date'[Date])
RETURN
CALCULATE(COUNT('Sample'[ID]),FILTER(ALL('Sample'),'Sample'[date closed] IN _DateRange))+0
Count of date escalated = 
VAR _DateRange = VALUES('Date'[Date])
RETURN
CALCULATE(COUNT('Sample'[ID]),FILTER(ALL('Sample'),'Sample'[date escalated] IN _DateRange))+0

 

Result is as below.

Date Range 9/28/2021 to 10/8/2021:

1.png

Date = 10/8/2021

2.png

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @aashton 

You could only create one active relationship between two tables( only Date Created is linked to the Date table).

Here I suggest you calcualte the count of Tickets which are in date range by measure.

My Sample:

1.png

Relationship is the same like yours.

2.png

Meausres:

 

Count of date created = COUNT('Sample'[date created])+0
Count of date closed = 
VAR _DateRange = VALUES('Date'[Date])
RETURN
CALCULATE(COUNT('Sample'[ID]),FILTER(ALL('Sample'),'Sample'[date closed] IN _DateRange))+0
Count of date escalated = 
VAR _DateRange = VALUES('Date'[Date])
RETURN
CALCULATE(COUNT('Sample'[ID]),FILTER(ALL('Sample'),'Sample'[date escalated] IN _DateRange))+0

 

Result is as below.

Date Range 9/28/2021 to 10/8/2021:

1.png

Date = 10/8/2021

2.png

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Community Champion
Community Champion

@aashton 
Take a look at these two Quick Measures as I think you want something like them.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364
https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.