Transform table with Pivot Table, DAX formula

Fractalis

Active Member
Joined
Oct 11, 2011
Messages
328
Office Version
  1. 365
Platform
  1. Windows
Hello to all,

I'm new with Pivot Tables, DAX formulas and I want to know if it is possible to get the output desired with PT, Power Pivot, DAX etc.

I'm using Excel 2016.

This is my input Table:

[TABLE="class: tableizer-table"]
<tbody>[TR="class: tableizer-firstrow"]
[TH]DESCRIPTION[/TH]
[TH]VALUE[/TH]
[/TR]
[TR]
[TD]STAGE[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]ID[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]NAME[/TD]
[TD]JFMSC[/TD]
[/TR]
[TR]
[TD]TYPE[/TD]
[TD]MLRR[/TD]
[/TR]
[TR]
[TD]DFRUL[/TD]
[TD]P1[/TD]
[/TR]
[TR]
[TD]ADDR[/TD]
[TD]1001[/TD]
[/TR]
[TR]
[TD]RRUL[/TD]
[TD]P1[/TD]
[/TR]
[TR]
[TD]SPRR[/TD]
[TD]TRUE[/TD]
[/TR]
[TR]
[TD]ISGALW[/TD]
[TD]FALSE[/TD]
[/TR]
[TR]
[TD]ISUTWD[/TD]
[TD]FALSE[/TD]
[/TR]
[TR]
[TD]STAGE[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]ID[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]NAME[/TD]
[TD]PLLSJS[/TD]
[/TR]
[TR]
[TD]TYPE[/TD]
[TD]MLRR[/TD]
[/TR]
[TR]
[TD]DFRUL[/TD]
[TD]P1[/TD]
[/TR]
[TR]
[TD]STAGE[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]ID[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]NAME[/TD]
[TD]AAAARR[/TD]
[/TR]
[TR]
[TD]TYPE[/TD]
[TD]MLRR[/TD]
[/TR]
[TR]
[TD]DFRUL[/TD]
[TD]R2[/TD]
[/TR]
[TR]
[TD]ADDR[/TD]
[TD]3553[/TD]
[/TR]
[TR]
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/TD]
[TD]DFRUL[/TD]
[TD]ADDR[/TD]
[TD]RRUL[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]0[/TD]
[TD]JFMSC[/TD]
[TD]MLRR[/TD]
[TD]P1[/TD]
[TD]1001[/TD]
[TD]P1[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]PLLSJS[/TD]
[TD]MLRR[/TD]
[TD]P1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]4[/TD]
[TD]AAAARR[/TD]
[TD]MLRR[/TD]
[TD]R2[/TD]
[TD]3553[/TD]
[TD]P1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]66444[/TD]
[TD]P1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]890087[/TD]
[TD]P1[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]0[/TD]
[TD]PPROOA[/TD]
[TD]RRHN[/TD]
[TD]P1[/TD]
[TD]7034[/TD]
[TD]P1[/TD]
[/TR]
</tbody>[/TABLE]

Is possible or only with VBA macro?

Thanks in advance
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Thanks so much for the links shared. Have helped me.

Best regards
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,198
Members
452,617
Latest member
Narendra Babu D

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top