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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
tspek
New Member

How to show the client with the most cancelled contracts

Ok so i have 3 columns: contracts, client and status

contracts is a list of contractnumbers

client is the one that "owns" the contract. like if a client wants to buy something a contract is being made

status is either: cancelled, order or option. These are writen as text. 

 

i want to make a chart where i can show which client has the most cancelled contracts but I can't figure it out.

 

Any help is appreciated 

 

Thijn

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@tspek

 

Try creating a MEASURE like

 

Count of Cancelled contracts =
CALCULATE ( COUNT ( TableName[Contracts] ), TableName[Status] = "Cancelled" )

Then put "Client" column in X-Axis and "Measure" in Values in a chart.........and sort by MEASURE

View solution in original post

3 REPLIES 3
Zubair_Muhammad
Community Champion
Community Champion

@tspek

 

Try creating a MEASURE like

 

Count of Cancelled contracts =
CALCULATE ( COUNT ( TableName[Contracts] ), TableName[Status] = "Cancelled" )

Then put "Client" column in X-Axis and "Measure" in Values in a chart.........and sort by MEASURE

Thank you! this is exactly what I needed.

Do you have any tips on how/where to learn the functions?

this would make PBI much easier

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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
Top Kudoed Authors