Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
hi i have data of clients having their ticket numbers i want to calculate number of clients who issued more than 100 tickets
Solved! Go to Solution.
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
Proud to be a Super User!
Hi @athersh
@DataInsights Good share!
For your question, here is the method I provided:
Here's some dummy data
"Table"
Create measures.
count_ticket_number =
CALCULATE(
DISTINCTCOUNT('Table'[Ticket Number]),
FILTER(
ALL('Table'),
'Table'[customer ID] = MAX('Table'[customer ID])
)
)
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.
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.
Hi @athersh
@DataInsights Good share!
For your question, here is the method I provided:
Here's some dummy data
"Table"
Create measures.
count_ticket_number =
CALCULATE(
DISTINCTCOUNT('Table'[Ticket Number]),
FILTER(
ALL('Table'),
'Table'[customer ID] = MAX('Table'[customer ID])
)
)
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.
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.
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
Proud to be a Super User!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 67 | |
| 63 | |
| 30 | |
| 30 | |
| 23 |