Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have created a Summarized Table with 5 columns [ 2 Char and 3 MEasures ]
Now I want to Pivot those Measure columns so that they will come in one Column.
How Can I acheive that?
Original Table (summarized Table from a original query )
Prdt | Month | Sales | Qty| Price
----------------------------------
P1| Jan | 111 | 2 | 3
P2| Jan | 345 | 4 | 5
New Table should be :
Prdt | Measure | Value
-------------------------
P1 | Jan | Sales | 111
P1 | Jan | Qty | 2
P1 | Jan | Price | 3
P2 | Jan | Sales | 345
P2 | Jan | Qty | 4
P2 | Jan | Price | 5
Solved! Go to Solution.
Hi @Anonymous
You may try to create a table like below.Here is the similar post for your reference.
New Table = UNION ( SUMMARIZE ( 'Summarized Table', 'Summarized Table'[Prdt], 'Summarized Table'[Month], "Measure", "Sales", "Value", SUM ( 'Summarized Table'[Sales] ) ), SUMMARIZE ( 'Summarized Table', 'Summarized Table'[Prdt], 'Summarized Table'[Month], "Measure", "Qty", "Value", SUM ( 'Summarized Table'[Qty] ) ), SUMMARIZE ( 'Summarized Table', 'Summarized Table'[Prdt], 'Summarized Table'[Month], "Measure", "Price", "Value", SUM ( 'Summarized Table'[Price] ) ) )
Regards,
Cherie
Hi @Anonymous
You may try to create a table like below.Here is the similar post for your reference.
New Table = UNION ( SUMMARIZE ( 'Summarized Table', 'Summarized Table'[Prdt], 'Summarized Table'[Month], "Measure", "Sales", "Value", SUM ( 'Summarized Table'[Sales] ) ), SUMMARIZE ( 'Summarized Table', 'Summarized Table'[Prdt], 'Summarized Table'[Month], "Measure", "Qty", "Value", SUM ( 'Summarized Table'[Qty] ) ), SUMMARIZE ( 'Summarized Table', 'Summarized Table'[Prdt], 'Summarized Table'[Month], "Measure", "Price", "Value", SUM ( 'Summarized Table'[Price] ) ) )
Regards,
Cherie
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |