Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I need to add values like this :
Col1 | Col2 | Col3
----------------------
A B C
D E F
G H I
Please help me how to add values into table in PowerBI
Solved! Go to Solution.
Hi @NPR ,
I created a sample as your required:
Then add below M code:
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclSK1YlWcgKTzmDSBUy6gkk3MOkOJj3ApKdSbCwA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Column1 = _t]), #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}}), #"Added Index" = Table.AddIndexColumn(#"Changed Type", "Index", 1, 1), #"Divided Column" = Table.TransformColumns(#"Added Index", {{"Index", each Number.RoundUp( _ / 3), type number}}), #"Added Index1" = Table.AddIndexColumn(#"Divided Column", "Index.1", 1, 1), #"Divided Column1" = Table.TransformColumns(#"Added Index1", {{"Index.1", each Number.Mod (_ , 3), type number}}), #"Pivoted Column" = Table.Pivot(Table.TransformColumnTypes(#"Divided Column1", {{"Index", type text}}, "en-US"), List.Distinct(Table.TransformColumnTypes(#"Divided Column1", {{"Index", type text}}, "en-US")[Index]), "Index", "Column1"), #"Removed Columns" = Table.RemoveColumns(#"Pivoted Column",{"Index.1"}) in #"Removed Columns"
get the result:
Then you can rename the column.
@NPR You mean, how to enter this data into table in Power BI ? If yes, then use "Enter Data" option
Proud to be a PBI Community Champion
No, i need to enter data into table horizortally. But (A,B,C,D.........) These items are in one column. Usually we can not add like this. That's why i am trying to add....!
Col1 | Col2 | Col3
-------------------
A B C
D E F
G H I
Not like this
Col1 | Col2 | Col3
-------------------
A
B
C
D
E
F
Hi @NPR ,
I created a sample as your required:
Then add below M code:
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclSK1YlWcgKTzmDSBUy6gkk3MOkOJj3ApKdSbCwA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Column1 = _t]), #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}}), #"Added Index" = Table.AddIndexColumn(#"Changed Type", "Index", 1, 1), #"Divided Column" = Table.TransformColumns(#"Added Index", {{"Index", each Number.RoundUp( _ / 3), type number}}), #"Added Index1" = Table.AddIndexColumn(#"Divided Column", "Index.1", 1, 1), #"Divided Column1" = Table.TransformColumns(#"Added Index1", {{"Index.1", each Number.Mod (_ , 3), type number}}), #"Pivoted Column" = Table.Pivot(Table.TransformColumnTypes(#"Divided Column1", {{"Index", type text}}, "en-US"), List.Distinct(Table.TransformColumnTypes(#"Divided Column1", {{"Index", type text}}, "en-US")[Index]), "Index", "Column1"), #"Removed Columns" = Table.RemoveColumns(#"Pivoted Column",{"Index.1"}) in #"Removed Columns"
get the result:
Then you can rename the column.
@NPR You need to click on the asterisk symbol to create a new column
Proud to be a PBI Community Champion
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
71 | |
57 | |
38 | |
36 |
User | Count |
---|---|
81 | |
67 | |
62 | |
46 | |
45 |