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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Filter within API Request

Hello,

 

i want to set a filter within a JSON Request. The code seems to be ok but i am not seeing the filtered data.

for example

 

foto.png

 

Does someone has a tip for me how i can get the filtered data shown? This filter works with another API Tool.

Thanks in advance

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I have found the mistake. Some braces were missing.

 

filter = [type="C__OBJTYPE__APPLIKATIONSLISTE"], category = "C__CATG__CONTACT",

 --> category = {"C......"}

 

Neverthless, thank you for your input !

View solution in original post

6 REPLIES 6
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

Hope this third - party article can help you.

https://github.com/Microsoft/PowerBI-JavaScript/wiki/Filters

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

im sorry, it makes me feel uncomfortable but i dont understand this. is there an example available ? like adding the filter into the json request?

Anonymous
Not applicable

Hi @Anonymous ,

 

This does not look like a valid JSON... Is this something you put inside a valid JSON as string parameter?

Can you share the context: the actual JSON being sent (please do not forget to remove any private/confidential data) and the query code that you use to fetch data?

 

Thanks,

JB

Anonymous
Not applicable

Hi @Anonymous 

yes, these are the steps in Power BI:

It only shows the values of type = "C__OBJTYPE__APPLIKATIONSLISTE" in the results, not the category = "C__CATG__CONTACT" (last picture).

I cannot see any error.

1 url1 url2 bodycontent2 bodycontent3 body3 body4 source4 source5 result5 result6 converted to table6 converted to table

Anonymous
Not applicable

Hi @Anonymous ,

 

I've tested it by sending this data for MS Flow and checking what comes through. The JSON seem to get to other side as expected.

Are you sure that in the request it should be 

 

filter = [type="C__OBJTYPE__APPLIKATIONSLISTE"], category = "C__CATG__CONTACT",

and not 

filter = [type="C__OBJTYPE__APPLIKATIONSLISTE", category = "C__CATG__CONTACT"],

 

isn't category part of your filter?

 

Kind regards,

JB

Anonymous
Not applicable

I have found the mistake. Some braces were missing.

 

filter = [type="C__OBJTYPE__APPLIKATIONSLISTE"], category = "C__CATG__CONTACT",

 --> category = {"C......"}

 

Neverthless, thank you for your input !

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors