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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
athersh
New Member

undefined

hi i have data of clients having their ticket numbers i want to calculate number of clients who issued more than 100 tickets

2 ACCEPTED SOLUTIONS
DataInsights
Super User
Super User

@athersh,

 

Try a measure like this:

 

Clients with over 100 tickets =
VAR vTicketCount =
    ADDCOLUMNS (
        VALUES ( Table1[Client] ),
        "@Count", CALCULATE ( COUNT ( Table1[Ticket ID] ) )
    )
VAR vResult =
    COUNTROWS ( FILTER ( vTicketCount, [@Count] > 100 ) )
RETURN
    vResult




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Anonymous
Not applicable

Hi @athersh 

 

@DataInsights Good share!

 

For your question, here is the method I provided:

 

Here's some dummy data

 

"Table"

vnuocmsft_0-1706860168432.png

 

Create measures.

 

 

count_ticket_number = 
    CALCULATE(
        DISTINCTCOUNT('Table'[Ticket Number]), 
        FILTER(
            ALL('Table'), 
            'Table'[customer ID] = MAX('Table'[customer ID])
        )
    )

 

 

vnuocmsft_1-1706860256655.png

 

 

count_customer_100 = 
    CALCULATE(
        DISTINCTCOUNT('Table'[customer ID]), 
        FILTER(
            ALL('Table'), 
            [count_ticket_number] > 5 // Change the judgment condition to be greater than 100
        )
    )

 

 

Here is the result.

vnuocmsft_2-1706860321759.png

 

If you still have problems, please provide some dummy data and desired results. It is best presented in table form.

 

Regards,

Nono Chen

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 @athersh 

 

@DataInsights Good share!

 

For your question, here is the method I provided:

 

Here's some dummy data

 

"Table"

vnuocmsft_0-1706860168432.png

 

Create measures.

 

 

count_ticket_number = 
    CALCULATE(
        DISTINCTCOUNT('Table'[Ticket Number]), 
        FILTER(
            ALL('Table'), 
            'Table'[customer ID] = MAX('Table'[customer ID])
        )
    )

 

 

vnuocmsft_1-1706860256655.png

 

 

count_customer_100 = 
    CALCULATE(
        DISTINCTCOUNT('Table'[customer ID]), 
        FILTER(
            ALL('Table'), 
            [count_ticket_number] > 5 // Change the judgment condition to be greater than 100
        )
    )

 

 

Here is the result.

vnuocmsft_2-1706860321759.png

 

If you still have problems, please provide some dummy data and desired results. It is best presented in table form.

 

Regards,

Nono Chen

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

 

DataInsights
Super User
Super User

@athersh,

 

Try a measure like this:

 

Clients with over 100 tickets =
VAR vTicketCount =
    ADDCOLUMNS (
        VALUES ( Table1[Client] ),
        "@Count", CALCULATE ( COUNT ( Table1[Ticket ID] ) )
    )
VAR vResult =
    COUNTROWS ( FILTER ( vTicketCount, [@Count] > 100 ) )
RETURN
    vResult




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.