Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I want to write a Dynamic query in power editor to import dynamic data with a parameter let us say subsId. In KQL, I want that to filter my data with a where clause of subscriptions id in a list. What type of parameter should I create? What should be syntax of the query in power editor?
Let us say I create a parameter "SelectedSubsIds", what should be the type, and how should I write the syntax "where subsId in ....."
Working with Kusto(KQL). Need syntax help there only, if you can provide any demo M query that selects a data from a Kusto table with a where clause of ids in "parameter".
Now this parameter should be such that it binds to a column of ids and I be able to add a slicer for these ids with multi-select and select all enabled.
Hi @Shreenav,
You can take a look at the following link to use Value.Native Query() to achieve inline KQL query.
Notice: the query part are text values, you can also parameterize and spliced with power query parameters.
Regards,
Xiaoxin Sheng
Followed this article but getting this error:
Expression.Error: Native queries aren't supported by this value.
Details:
[Table]
HI @Shreenav,
Can you please share some more detail about these M queries that return the error messages?
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Hi @Shreenav,
What type of data source are you worked? If you mean the SQL or Oracle data source which support query string, you can try to parametrize them with query parameters to achieve dynamic M query. (these query string will get different results when you changes on the query parameters)
Regards,
Xiaoxin Sheng