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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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 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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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