If imaging studies detect a mass in the pancreas, a pancreatic cancer diagnosis is likely, but not definite. Only a biopsy -- taking actual tissue from the mass -- can diagnose pancreatic cancer. Percutaneous needle biopsy: Under imaging guidance, a radiologist inserts a needle into the mass, capturing some tissue.