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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.