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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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 

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 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.