Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello, I'm having difficulty when trying to unpivot columns. The desired output is to have no duplicates in the "RPO Produced" column. I have read several discussions, including one from here https://community.fabric.microsoft.com/t5/Desktop/Unpivot-multiple-columns-without-duplicates/m-p/66... However, I haven't found the solution I'm looking for. Here is the attached data structure and the current result (with duplicates). How can I prevent the "RPO Produced" column from producing duplicates and show the actual value from source?
let
Source = Excel.Workbook(File.Contents("C:\\DASHBOARD.xlsx"), null, true),
Cost_Sheet = Source{[Item="Cost",Kind="Sheet"]}[Data],
#"Promoted Headers" = Table.PromoteHeaders(Cost_Sheet, [PromoteAllScalars=true]),
#"Unpivoted Columns" = Table.UnpivotOtherColumns(#"Promoted Headers", {"Period", "Period Duration", "Location Plant", "RPO Produced (MT)"}, "Attribute", "Value")
in
#"Unpivoted Columns"
result (RPO duplicated)
Hi,
Should should the number in the RPO producted column appear only for the depreciation cost row? Share data in a format that can be pasted in an MS Excel file and show the expected result.
User | Count |
---|---|
98 | |
90 | |
78 | |
71 | |
64 |
User | Count |
---|---|
114 | |
97 | |
95 | |
68 | |
65 |