Prometheus dashboard with dynamic CPU issue

Hi,

Grafana and Prometeus noob, so I apologise if this has been asked by hundreds before me.

Imported dashboard, 10171, WMI because windows Servers.

But my basic logic, is filter out the idle, divide by number of cores ( 8 or 3 ) and * 100

Simple but a pain

SUM( wmi_cs_logical_processors{ job = “$job” } ) without (cpu, job, instance)

On Prometheus will return 8 or 3 depending on the job I hardcode while debugging,
but grafana is looking at the label name probably

Sends this
" Error updating options: invalid parameter “match”: 1:4: parse error: unexpected “(” "

Any help appreciated,

T