Your national salary average moved when you added regional rows. Now the market report needs an explanation for why a location transformation changed a pay statistic.
The suspicious line is jobs.explode("locations") . The job location structure is a locations[] array of objects, so expanding it repeats any parent salary across its location associations.
Exploding job locations changes the analytical unit from an advert to a job-location association. Calculate a national mean on those expanded rows and ads with more associations receive more weight.
Keep the search population attached
For Dataspryva's Willhaben Actor, mode selects the collection route. It's a string input; startUrls is an array used with byUrls , which accepts ordinary listing URLs and job URLs, including searches.
That matters because the collection route isn't the record type.…