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
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
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.