March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Dear all,
I have the trade data from January until December in which the months (Jan-Dec) are the header. How do I make the header as a month's slicer ? Is it using the pivot and unpivot ? , but I have 9,910 rows of each columns. I cant provide the PBIX file since it is confidential.
I tried to unpivoted the selected column (all months), it works but the total(sum) of import and export changed after I unpivoted the selected column and the data become totally wrong. The import data should be 17bil, but it become 2 tril after unpivoted the selected columns
Solved! Go to Solution.
Hi @Anonymous ,
You need to use pivot first and then unpivot.
1.Select the two columns and then click "Unpivot other columns".
2.Split the Attribute column with " ".
3.Select the Attribute.1 column and click Pivot Column.
Now you have a column with month name, a column with QTY and a column with VAL.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
You need to use pivot first and then unpivot.
1.Select the two columns and then click "Unpivot other columns".
2.Split the Attribute column with " ".
3.Select the Attribute.1 column and click Pivot Column.
Now you have a column with month name, a column with QTY and a column with VAL.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
21 | |
16 | |
13 | |
12 | |
9 |
User | Count |
---|---|
34 | |
31 | |
20 | |
19 | |
17 |