Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
How do I filter this table https://dataportal.dol.gov/datasets/10236 by all records after a certain date using a DOL API query. {"field": "YOUR_FIELD","operator": "gt","value": "YOUR_VALUE"} If I put load_dt in the "value" and the Date, for example 2024-10-12. the query won't work. What am I doing wrong?
Yes. I have an API key. I don't know the proper format for filtering by date in the API call.
Hi @lmk,
You can take a look at the PDF document 'Conditional Filtering ' part and it shows how the filter condition defines and usages:
Sample query:
https://apiprod.dol.gov/v4/get/agency/dataset/json?limit=10&offset=0&sort=asc&sort_by=Date
&filter_object={"and":[{"field":"dataset_id","operator":"eq","value":"10236"}, {"field":"date","operator":"eq","value":"2024-10-12"}]}&X-API-KEY=
xxxxxxxx
Regards,
Xiaoxin Sheng
Hi @lmk,
I check the document and find it include a login-in/registration function to get access tokens, and the other type of operation all required this in following rest api usages.
DOL API User Guide - dataportal.dol.gov
Regards,
Xiaoxin Sheng
That API key requires registration.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
3 | |
3 | |
2 | |
2 |
User | Count |
---|---|
13 | |
6 | |
5 | |
3 | |
2 |