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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
raj777karthik
Microsoft Employee
Microsoft Employee

Dynamic K query in power bi

i have a dataflow table which has Kql in which one of column Source id has been hardcoded(Ex.2000 value has been hardcoded)*in query editor.i have another dataflow table which Source id has been populated from Excel manually.So my requirement is to bring Source id from dataflow table to Kql query dynamically as parameter .Instead of hardcode value i should bring source id from table as parameter.

Note:This is dataflow we are working and not dataset.

 

K query

let
Source = Kusto.Contents("https://kusto.net", "Shared", "let map = datatable(ServiceOid: string) [ ""01c29849-61c3-4646-80c1-24c7dd98f2e7""--hardcoded value, ]; map | join kind = leftouter ( Orderline| summarize Description = strcat_array(make_list(Description),',') by Sourceid) on Sourceid | 
in
Source

1 REPLY 1
artemus
Microsoft Employee
Microsoft Employee

Instead of creating a datatable, just do a join on your kusto query with your dataflow table (after reducing it down to a small size). If the data table is small enough, it will be converted to a datatable in kusto when sending the query off.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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 Solution Authors