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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
jesly_ajin
Helper III
Helper III

To get a function output as text value instead of Table output in Power Query

Dears,

Below is my function in Power Query Editor. The output is currently as a table with a single row single column.

I need the function output to be a text in order to use its value.  Please help

 

()=> let
url = "https://abc.track.com/api/v1/auth/login",
headers = [#"Content-Type" = "application/json"],
postData = Json.FromValue([username="MyAbc",
password= "554433", fcmToken="456"]),
response = Web.Contents(
url,
[
Headers = headers,
Content = postData
]
),
access_token=Json.Document(response),
result = access_token[result],
#"Converted to Table" = Record.ToTable(result),
#"Transposed Table" = Table.Transpose(#"Converted to Table"),
#"Removed Columns" = Table.RemoveColumns(#"Transposed Table",{"Column1", "Column2", "Column3", "Column4", "Column5", "Column7", "Column8", "Column9", "Column10", "Column11"}),
#"Removed Top Rows" = Table.Skip(#"Removed Columns",1)
in
#"Removed Top Rows"

1 REPLY 1
lbendlin
Super User
Super User

()=> let
url = "https://abc.track.com/api/v1/auth/login",
headers = [#"Content-Type" = "application/json"],
postData = Json.FromValue([username="MyAbc",
password= "554433", fcmToken="456"]),
response = Web.Contents(
url,
[
Headers = headers,
Content = postData
]
),
access_token=Json.Document(response),
result = access_token[result],
#"Converted to Table" = Record.ToTable(result),
#"Transposed Table" = Table.Transpose(#"Converted to Table")
in
#"Transposed Table"[Column6]{0}

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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