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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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