Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
In Power Query:
Why does the first query work and the second query does not? If the field types are integer or Boolean the filter fails. Why?
Query 1 (works) :
Query = "Vulnerabilities?$filter=severity eq 'Critical' and cvssV3 eq 9.8",
Source = OData.Feed(https://api.securitycenter.microsoft.com/api/ & Query, null, [Implementation="2.0", MoreColumns=true])
Query 2 (fails) :
Query = "Vulnerabilities?$filter=severity eq 'Critical' and exposedMachines gt 0",
Source = OData.Feed(https://api.securitycenter.microsoft.com/api/ & Query, null, [Implementation="2.0", MoreColumns=true])
Hi @cnederveen ,
The field type applied to the filter can be a number, datetime, or string and the type used must match the type set in the dataset. However, Boolean type is not included in them. Could you please change Query 2 to the following form: equal to a fixed value already in the dataset and check if it works after updated?
Query = "Vulnerabilities?$filter=severity eq 'Critical' and exposedMachines eq [static value]", |
Best Regards
Is exposedMachines an actual column in your source data or are you trying to run an aggregation of sorts?
User | Count |
---|---|
5 | |
4 | |
3 | |
2 | |
2 |
User | Count |
---|---|
8 | |
6 | |
4 | |
4 | |
4 |