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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Web API connection - Logical operator help

Hi all, 

 

I have a Web API connection set (CRM tool) set and i want to extend the data based on the value of 'Type' field.

The Type field contains 10 possible values. I want only 3 of them.

 

The source is configured as below :

...api/xml/Tickets?DateCreated=20190311000001&Type[contains]=Enhancement&pageSize=2000"

 

How can extend the data to be Type[contains]=Enhancement OR Type[contains]=Access OR Type[contains]=Defect

 

Thanks for your help

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks for your help. The issue is fixed by adding '&' for each type.

View solution in original post

4 REPLIES 4
mahoneypat
Microsoft Employee
Microsoft Employee

Does it hurt performance/refresh too much to just bring it all in (remove the existing filter on Type) and filter in query?  If so, you'll have to look at the syntax for your API, but does it accept them provided in a comma separated list?

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

Thanks for your answer. Yes it will impact the performance this is why i need to get only those values. 

Sorry i'm very new with this, where can I found the API syntax?

 

@Anonymous 

 

You may refer to the post below that invokes Custom Function in Query Editor.

http://community.powerbi.com/t5/Desktop/Create-tables-based-on-all-Query-Parameters/td-p/345947

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

Thanks for your help. The issue is fixed by adding '&' for each type.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.