Forum Discussion
How to pull the data for specific Column?
First step is to unpivot your data to bring it into usable format.
Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to assist you. I cannot use screenshots of your source data.
Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
Hello I unpivoted data in Power Bi still I am strugging for pulling the data.
- lbendlin4 years agoSuper User
Please provide sanitized sample data that fully covers your issue.
Please show the expected outcome based on the sample data you provided.- Anonymous4 years agoNot applicable
I updated it with excel file in my post
- lbendlin4 years agoSuper User
First step: unpivot. Note that your first two columns are missing a column name so I excluded them
let Source = Excel.Workbook(File.Contents("C:\Users\me\Downloads\excel.xlsx"), null, false), #"Projektprognos _sheet" = Source{[Item="Projektprognos ",Kind="Sheet"]}[Data], #"Removed Top Rows" = Table.Skip(#"Projektprognos _sheet", 1), #"Removed Columns" = Table.RemoveColumns(#"Removed Top Rows",{"Column1", "Column2", "Column18"}), #"Promoted Headers" = Table.PromoteHeaders(#"Removed Columns", [PromoteAllScalars=true]), #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Promoted Headers", {"Typ", "Period"}, "Attribute", "Value"), #"Changed Type" = Table.TransformColumnTypes(#"Unpivoted Other Columns",{{"Value", Currency.Type}, {"Attribute", Int64.Type}, {"Period", type date}}) in #"Changed Type"Now you can create your measures, one against Attribute 0 and the other against all other attributes.