Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
I have a straight table with two columns for now that I want to be at the left side instead of the top.
How can I do this?
Before:
Date | Homeruns |
2022-10-05 | 1 |
2022-10-06 | 3 |
After:
Date | 2022-10-05 | 2022-10-06 |
Homeruns | 1 | 3 |
@HarryT ,
try this,
step 1 : Go to Power Query Editor, then demote the headers.
step 2 : Transpose the table.
you will get the result like the below and you can rename the columns based on your requirement (OR) If you want to promote the headers you can do that as well.
attached the M code for the same,
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjIwMtI1NNA1MFXSUTJUitVBEjIDChkrxcYCAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Date = _t, Homeruns = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Date", type date}, {"Homeruns", Int64.Type}}),
#"Demoted Headers" = Table.DemoteHeaders(#"Changed Type"),
#"Changed Type1" = Table.TransformColumnTypes(#"Demoted Headers",{{"Column1", type any}, {"Column2", type any}}),
#"Transposed Table" = Table.Transpose(#"Changed Type1")
in
#"Transposed Table"
Thanks,
Are you saying to transpose the whole table? There is like 50 columns and I only want to show 2 of them in a table view this way.
Hi,
I would transpose your table in Power Query
which would result in the following M code:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WckksSVXSUfLIz00tKs0rVorViVYyMjAy0jU00DUwBcoYogqZAYWMlWJjAQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t, Column2 = _t]),
#"Transposed Table" = Table.Transpose(Source)
in
#"Transposed Table"
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
86 | |
84 | |
66 | |
62 | |
60 |
User | Count |
---|---|
197 | |
118 | |
108 | |
78 | |
69 |