NEW league tables put the trust running Huddersfield Royal Infirmary as doing well at balancing the books.
The Calderdale and Huddersfield NHS Foundation Trust scores a three rating.
Experts at the Audit Commission judged hospital and primary care trusts on a scale of one to four.
But the Mid Yorkshire Hospitals NHS Trust - whose four hospitals include Dewsbury District - gets a rating of one.
It has already announced measures to tackle a £35m debt.
Performance is judged over five areas - financial reporting, financial management, financial standing, internal control and value for money.
West Yorkshire Ambulance Trust is also judged as dismal with a rating of one.
The same mark was given to Huddersfield Central and South Huddersfield primary care trusts.
Both bodies have since been merged into a new trust covering the whole of Kirklees.
South West Yorkshire Mental Health Trust gets a two.
Publication of the tables follows the Healthcare Commission's annual health checks in which Calderdale and Huddersfield NHS Trust was ranked as good.
Colne Valley Labour MP Kali Mountford said she was pleased with the result. She said: "This shows that continuous investment, coupled with sound management, pays off. Rather than knocking the NHS we should support it."