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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
dgdgdg122db
Helper II
Helper II

count based on the first filter

Hi 

I want to count the no. of solved tickets that filter two dates: 1) created  and 2) resolved

If I do it in excel:

first,

No. of Created tickets: select everything that was created from the beginning (2018) until 2019-02

= 144

111111111111.png

 

 

No. of resolve tickets: keep the filter that set on Created and then filter the resolved everything that is from 2019-02 until now

=53

212212.png

can I do this in Power Bi and how ?

 

my excel sheet is https://drive.google.com/file/d/1WP6TNJghWzUJU9ZGg_S12FzbgfWPhEfJ/view?usp=sharing

4 REPLIES 4
v-lid-msft
Community Support
Community Support

Hi @dgdgdg122db ,

 

We can try to create the following calculated column in the Calendar table:

 

Resolved tickets =
CALCULATE (
    DISTINCTCOUNT ( 'Resolved'[Issue id] ),
    FILTER ( 'Resolved', [Resolved] >= [Date] )
)

 

Or create a measure used with the date column of Calendar table:

 

Resolved tickets =
CALCULATE (
    DISTINCTCOUNT ( 'Resolved'[Issue id] ),
    FILTER (
        ALLSELECTED ( 'Resolved' ),
        'Resolved'[Resolved] >= MAX ( 'Calendar'[Date] )
    )
)

 

If it doesn't meet your requirement, kindly share your sample data and expected result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I think my explanation was not clear.

But for example, I am using excel and I want to count the followings:

1. No. of Created tickets: select everything that was created from the beginning (2018) until 2019-02

2. No. of resolve tickets: keep the filter that set on Created and then filter the resolved everything that are from 2019-02 until now.

Basically, I need to first select the date on created, and then keep this selection and then select the resolved. In this case, the resolve date is greater or equal to the created date.

 

In excel: first, select everything until  Feb. the count of created is 144

111111111111.png

And then, keep the filter that was on created, and now select resolved everything is greater or equal to the created date. The count from Feb onwards is 53

212212.png

 

my excel file is here https://drive.google.com/file/d/1WP6TNJghWzUJU9ZGg_S12FzbgfWPhEfJ/view?usp=sharing

 

 

 

Anonymous
Not applicable

In your 'solved' table, I saw 'created' and 'status' fields already.  Why do you need to join with other tables?  You should be able to to get your answer within the 'solved' table.  If not, please post your 'solved' table.

 

Best,

 

Eric Ji | Senior Business Intelligence Consultant
www.designmind.com

amitchandak
Super User
Super User

Not sure why you have another table for resolved. You can join both dates with date table. One will active join another one will be inactive join.

Refer how to use userelation to change date join

https://community.powerbi.com/t5/Desktop/DATE-RANGE-SLICERS-TO-COMPARE-NETSALES-OF-A-DATE-RANGE/td-p...

 

Once they in same table you can easily add a filter in the calculation resolve date and created date

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.

My Recent Blog - https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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 Solution Authors