Forum Discussion
How can I create this new table
Hi,
I have this table:
Out of this table I want to create a new table with 2 columns:
"Column 1" should be the Area (=column headers)
"Column 2" should be the install date that corresponds with the first value that goes above 3
Who can help me with that please?
Thanks in advance.
1 Reply
- AnonymousNot applicable
Hi FredDeb ,
I created a sample pbix file(see the attachment), please check if that is what you want. You can unpivot those area columns in Power Query Editor to achieve it:
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("TY7RDQAhCEN34duLgJd4zmLYf40DlKQf1RbzinuTdJldWQc1UtfrCs83T9cjdygrksabCFlL/EO8boZcdVmTBxe7is3KK+wZ4I8OqYwkbuP6K/jTbvYD", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Install Date" = _t, A1.1a = _t, A1.1b = _t, A1.2a = _t, A1.2b = _t, A2.1a = _t, A2.1b = _t, A2.2a = _t, A2.2b = _t, A3 = _t, A4 = _t, A5 = _t]), #"Changed Type" = Table.TransformColumnTypes(Source,{{"Install Date", type date}, {"A1.1a", Int64.Type}, {"A1.1b", Int64.Type}, {"A1.2a", Int64.Type}, {"A1.2b", Int64.Type}, {"A2.1a", Int64.Type}, {"A2.1b", Int64.Type}, {"A2.2a", Int64.Type}, {"A2.2b", Int64.Type}, {"A3", Int64.Type}, {"A4", Int64.Type}, {"A5", Int64.Type}}), #"Unpivoted Only Selected Columns" = Table.Unpivot(#"Changed Type", {"A1.1a", "A1.1b", "A1.2a", "A1.2b", "A2.1a", "A2.1b", "A2.2a", "A2.2b", "A3", "A4", "A5"}, "Area", "Value") in #"Unpivoted Only Selected Columns"If the above one can't help you, could you please provide more raw data in your table (exclude sensitive data) with Text format, your column chart field settings and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:
How to provide sample data in the Power BI Forum
How to Get Your Question Answered Quickly
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards