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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 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.