Work Around for imported function through the V2 API

Imported Function: “Events.duration” not working through the API/v2. Can get the “State duration” ( built in ) to work through the API however it does not calculate correctly. Anyone know a work around to get imported functions to work through the API/V2? Thanks.

Hello @moorejeffrey,
What does your api call look like? I haven’t had any trouble submitting queries with the import statements.

Hello Anaisdg:
Thank you for the response. I am querying Influx ver 2.0.9 from Microsoft PowerBi. Trying different iterations of the query I found that I likely have a PowerBi issue. I can calculate duration in PowerBi but the thought was to have only one duration source to avoid error. Please see a sample of my query below. Thank you again for the feedback.