Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jmkvalsund
Helper III
Helper III

Filtering data from web source

I've set up a web datasource where I would like to change the filter, but don't know how.
This is part of my current query:


""code"": ""Period"",
""selection"": {
""filter"": ""item"",
""values"": [
""2022M01"",
""2022M02"",
""2022M03""

As you can see, I'm reading data and filtering on column "Period" pr year and month. But when using "item" and "values" I have to manually add new values monthly. If I add values not present in the returning data, I get an error. Is there an operator that in this case can say like "When period less than 2022M12 " to get data for 2022 without me editing the query each mont?

Regards,

John Martin

1 ACCEPTED SOLUTION
jennratten
Super User
Super User

Hello!  There are ways to filter within the URL, however what is allowed varies wildly by site.  Below is a link that shows many examples of filter scenarios for the Microsoft Graph API.

https://docs.microsoft.com/en-us/graph/query-parameters 

If this post helps to answer your questions, please consider marking it as a solution so others can find it more quickly when faced with a similar challenge.

Proud to be a Microsoft Fabric Super User

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @jmkvalsund ,

 

"2022M02" appears to be in text format, so it doesn't seem like you want to be less than "2022M02".

You could try 

= Table.SelectRows(#"Changed Type", each [values] = "2022M01")

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

jennratten
Super User
Super User

Hello!  There are ways to filter within the URL, however what is allowed varies wildly by site.  Below is a link that shows many examples of filter scenarios for the Microsoft Graph API.

https://docs.microsoft.com/en-us/graph/query-parameters 

If this post helps to answer your questions, please consider marking it as a solution so others can find it more quickly when faced with a similar challenge.

Proud to be a Microsoft Fabric Super User

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.