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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
biswajeet1995
New Member

how to change manual input values to dynamically change in json formvalue

how i can change nature of business & searchinput every time user input different and show the output.

 

let
Query2 = let
url = "XXXXXXXXXXXXXXXXX",
headers = [#"Content-Type" = "application/json"],
postData = Json.FromValue([natureOfBusiness = "Employment",searchInput = "cyber tech"]),
response = Web.Contents(
url,
[
Headers = headers,
Content = postData
]
),
jsonResponse = Json.Document(response),
jsonResponse1 = jsonResponse{0}+jsonResponse{1}+jsonResponse{2},
#"Converted to Table" = Record.ToTable(jsonResponse1)
in
jsonResponse,
#"Converted to Table" = Table.FromList(Query2, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"organization", "abbreviated", "category", "score"}, {"organization", "abbreviated", "category", "score"}),
#"Changed Type" = Table.TransformColumnTypes(#"Expanded Column1",{{"score", Int64.Type}})
in
#"Changed Type"

1 REPLY 1
lbendlin
Super User
Super User

Dynamic query parameters are only supported for Direct Query data sources. Web.Contents is import mode only.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.