Forum Discussion
Use table values as a parameter
- 5 years ago
Hello klehar ,
you didn't say they are in one table π
You can just do the drill down for each parameter in the second query.
For your example, I added 2 more columns:
In the "Table (2)" query you can add the drilldown as an own variable, like that:
ParameterDelayFactor = Table{0}[Delay Factor],Or if you need the Parameter 3:
ParameterParameter3 = Table{0}[Parameter 3],Then you can add it to your normal query of "Table (2)":
let ParameterDelayFactor = Table{0}[Delay Factor], Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMtE31DcyMDJQio0FAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Date = _t]), #"Changed Type" = Table.TransformColumnTypes(Source,{{"Date", type date}}), #"Added Custom" = Table.AddColumn(#"Changed Type", "DateAdd", each Date.AddMonths ( [Date], ParameterDelayFactor )), #"Changed Type1" = Table.TransformColumnTypes(#"Added Custom",{{"DateAdd", type date}}) in #"Changed Type1"If you need any help please let me know.If I answered your question I would be happy if you could mark my post as a solution βοΈ and give it a thumbs up πBest regardsDenisBlog: WhatTheFact.biFollow me: twitter.com/DenSelimovic
selimovd thanks for the quick reply
However as I told you my parameter table has multiple columns with single row
Drilling it down will create a list and not a table
I guess i have to use list functions to fetch some values from each column but not sure how
Hello klehar ,
you didn't say they are in one table π
You can just do the drill down for each parameter in the second query.
For your example, I added 2 more columns:
In the "Table (2)" query you can add the drilldown as an own variable, like that:
ParameterDelayFactor = Table{0}[Delay Factor],
Or if you need the Parameter 3:
ParameterParameter3 = Table{0}[Parameter 3],
Then you can add it to your normal query of "Table (2)":
let
ParameterDelayFactor = Table{0}[Delay Factor],
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMtE31DcyMDJQio0FAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Date = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Date", type date}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "DateAdd", each Date.AddMonths ( [Date], ParameterDelayFactor )),
#"Changed Type1" = Table.TransformColumnTypes(#"Added Custom",{{"DateAdd", type date}})
in
#"Changed Type1"
- klehar5 years agoHelper V
You saved my day Thank you
- selimovd5 years agoMost Valuable Professional
Sure, here you go:
https://www.swisstransfer.com/d/57685d34-a1b8-4533-81e8-d1359c818e16
If you need any help please let me know.If I answered your question I would be happy if you could mark my post as a solution βοΈ and give it a thumbs up πBest regardsDenisBlog: WhatTheFact.biFollow me: twitter.com/DenSelimovic