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

View all the Fabric Data Days sessions on demand. View schedule

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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