Forum Discussion
AntoineCh
9 years agoHelper I
Check if query exists
Hi all, I have a report with 2 elements in PowerQuery : A function returning a table ==> creating queries "Invoked Function", "Invoked Function (2)", "Invoked Function (3)", etc. A query that...
Anonymous
9 years agoNot applicable
Hi AntoineCh,
Based on your description, each of your invoke function returns a table and you want to check if the function returns any result, right? If that is the case, you can consider to use Table.IsEmpty function to check if the table contains any rows, and create another query that contains all of your functions and set a function parameter in order to check if each function returns empty table. You can take a look at this similar thread to get more ideas.
if Table.IsEmpty(tablename)=true then A else B
Thanks,
Lydia Zhang