The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi
I am having below table
I want to have the output as follow,
Custom | Year | Value |
Tower | 2018 | 180051.45 |
Tower | 2019 | 16603.18 |
When I tried to use unpivot, I am getting below
Can anyone advise?
Solved! Go to Solution.
Rename the Value columns before the Unpivot. Rename them to be like ValYear1, ValYear2 , that is, put the number at the end. This will be used to identify pairs.
OK, so do the unpivot.
Then Split the Attribute column By Non-Digit to Digit.
Then Pivot the Attribute.1 column using Values and "Don't Aggregate".
--
Let me know how it goes
Rename the Value columns before the Unpivot. Rename them to be like ValYear1, ValYear2 , that is, put the number at the end. This will be used to identify pairs.
OK, so do the unpivot.
Then Split the Attribute column By Non-Digit to Digit.
Then Pivot the Attribute.1 column using Values and "Don't Aggregate".
--
Let me know how it goes
User | Count |
---|---|
83 | |
82 | |
34 | |
33 | |
32 |
User | Count |
---|---|
93 | |
79 | |
62 | |
54 | |
51 |