We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi,
I have this Table (Snap_To_DB):
How can I select the Value from Column "Value" at the line "Value_1"?
I need this in Power Query M code.
Thanks...
Solved! Go to Solution.
Hi @torsten_FO ,
You need to further explain what your expected output is (a table, a list or others).
Please try this:
= Table.SelectRows(#"The name of the previous step", each [Data] = "Value_1")[Value]
The original table:
result:
Attach the test code for reference:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WCkvMKU2NN1TSUTI0MFCK1YGJGAFFjFBEjIEixigiIF0mGLpMQSKxAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Data = _t, Value = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Data", type text}, {"Value", Int64.Type}}),
#"test" = Table.SelectRows(#"Changed Type", each [Data] = "Value_1")[Value]
in
#"test"
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
Hi @torsten_FO ,
You need to further explain what your expected output is (a table, a list or others).
Please try this:
= Table.SelectRows(#"The name of the previous step", each [Data] = "Value_1")[Value]
The original table:
result:
Attach the test code for reference:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WCkvMKU2NN1TSUTI0MFCK1YGJGAFFjFBEjIEixigiIF0mGLpMQSKxAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Data = _t, Value = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Data", type text}, {"Value", Int64.Type}}),
#"test" = Table.SelectRows(#"Changed Type", each [Data] = "Value_1")[Value]
in
#"test"
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
Hi! @torsten_FO
Can you please share some sample data and desired output? Your problem is not very clear to me.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 10 | |
| 8 | |
| 7 | |
| 7 | |
| 5 |