(Power?) pivot: filter or split comma separated data in one cell to multiple columns in (power?) pivot table (by measure?)

ooptennoort

Board Regular
Joined
Mar 29, 2021
Messages
67
Office Version
  1. 365
Platform
  1. Windows
Í'll try to explain with data table/power pivot. I want to split the intervals (without ", ") in the column SectionS (plural!) giving each interval it's own column (with corresponding section as name) into a (power) pivot table. I guess using DAX is the only way... but how? I'm no Ferrari ;)

Data Table:
InOutSectionS
810-2, 2-4, 4-6, 6-8
0.14.90-2, 2-4, 4-6
116117116-118
343434-36
32.332.332-34
5134-6, 6-8, 8-10, 10-12, 12-14
55.311010-12, 12-14, 14-16, 16-18, 18-20, 20-22, 22-24, 24-26, 26-28, 28-30, 30-32, 32-34, 34-36, 36-38, 38-40, 40-42, 42-44, 44-46, 46-48, 48-50, 50-52, 52-54, 54-56
1055.3110-12, 12-14, 14-16, 16-18, 18-20, 20-22, 22-24, 24-26, 26-28, 28-30, 30-32, 32-34, 34-36, 36-38, 38-40, 40-42, 42-44, 44-46, 46-48, 48-50, 50-52, 52-54, 54-56
55.3111.3110-12, 12-14, 14-16, 16-18, 18-20, 20-22, 22-24, 24-26, 26-28, 28-30, 30-32, 32-34, 34-36, 36-38, 38-40, 40-42, 42-44, 44-46, 46-48, 48-50, 50-52, 52-54, 54-56
11.3155.3110-12, 12-14, 14-16, 16-18, 18-20, 20-22, 22-24, 24-26, 26-28, 28-30, 30-32, 32-34, 34-36, 36-38, 38-40, 40-42, 42-44, 44-46, 46-48, 48-50, 50-52, 52-54, 54-56
7.17.16-8
7.100-2, 2-4, 4-6, 6-8
7.27.26-8
7.557.556-8
700-2, 2-4, 4-6, 6-8
10.310.310-12
000-2
55.14-6
554-6
554-6
5.15.14-6
6.76.76-8
8.58.58-10
9298-10, 10-12, 12-14, 14-16, 16-18, 18-20, 20-22, 22-24, 24-26, 26-28, 28-30
998-10
9.59.58-10
9.89.88-10
8.800-2, 2-4, 4-6, 6-8, 8-10
11.500-2, 2-4, 4-6, 6-8, 8-10, 10-12
8800-2, 2-4, 4-6, 6-8, 8-10, 10-12, 12-14, 14-16, 16-18, 18-20, 20-22, 22-24, 24-26, 26-28, 28-30, 30-32, 32-34, 34-36, 36-38, 38-40, 40-42, 42-44, 44-46, 46-48, 48-50, 50-52, 52-54, 54-56, 56-58, 58-60, 60-62, 62-64, 64-66, 66-68, 68-70, 70-72, 72-74, 74-76, 76-78, 78-80, 80-82, 82-84, 84-86, 86-88
14400-2, 2-4, 4-6, 6-8, 8-10, 10-12, 12-14, 14-16, 16-18, 18-20, 20-22, 22-24, 24-26, 26-28, 28-30, 30-32, 32-34, 34-36, 36-38, 38-40, 40-42, 42-44, 44-46, 46-48, 48-50, 50-52, 52-54, 54-56, 56-58, 58-60, 60-62, 62-64, 64-66, 66-68, 68-70, 70-72, 72-74, 74-76, 76-78, 78-80, 80-82, 82-84, 84-86, 86-88, 88-90, 90-92, 92-94, 94-96, 96-98, 98-100, 100-102, 102-104, 104-106, 106-108, 108-110, 110-112, 112-114, 114-116, 116-118, 118-120, 120-122, 122-124, 124-126, 126-128, 128-130, 130-132, 132-134, 134-136, 136-138, 138-140, 140-142, 142-144
10100-2, 2-4, 4-6, 6-8, 8-10, 10-12, 12-14, 14-16, 16-18, 18-20, 20-22, 22-24, 24-26, 26-28, 28-30, 30-32, 32-34, 34-36, 36-38, 38-40, 40-42, 42-44, 44-46, 46-48, 48-50, 50-52, 52-54, 54-56, 56-58, 58-60, 60-62, 62-64, 64-66, 66-68, 68-70, 70-72, 72-74, 74-76, 76-78, 78-80, 80-82, 82-84, 84-86, 86-88, 88-90, 90-92, 92-94, 94-96, 96-98, 98-100, 100-102
100.999900-2, 2-4, 4-6, 6-8, 8-10, 10-12, 12-14, 14-16, 16-18, 18-20, 20-22, 22-24, 24-26, 26-28, 28-30, 30-32, 32-34, 34-36, 36-38, 38-40, 40-42, 42-44, 44-46, 46-48, 48-50, 50-52, 52-54, 54-56, 56-58, 58-60, 60-62, 62-64, 64-66, 66-68, 68-70, 70-72, 72-74, 74-76, 76-78, 78-80, 80-82, 82-84, 84-86, 86-88, 88-90, 90-92, 92-94, 94-96, 96-98, 98-100, 100-102
100.00000100-2, 2-4, 4-6, 6-8, 8-10, 10-12, 12-14, 14-16, 16-18, 18-20, 20-22, 22-24, 24-26, 26-28, 28-30, 30-32, 32-34, 34-36, 36-38, 38-40, 40-42, 42-44, 44-46, 46-48, 48-50, 50-52, 52-54, 54-56, 56-58, 58-60, 60-62, 62-64, 64-66, 66-68, 68-70, 70-72, 72-74, 74-76, 76-78, 78-80, 80-82, 82-84, 84-86, 86-88, 88-90, 90-92, 92-94, 94-96, 96-98, 98-100, 100-102
5.9900-2, 2-4, 4-6
0.00100-2
3.49999900-2, 2-4
3.500000100-2, 2-4
050-2, 2-4, 4-6
6.500000100-2, 2-4, 4-6, 6-8
6.00000100-2, 2-4, 4-6, 6-8
7.500000100-2, 2-4, 4-6, 6-8
7.0000100-2, 2-4, 4-6, 6-8
7.999999900-2, 2-4, 4-6, 6-8
8.500000100-2, 2-4, 4-6, 6-8, 8-10
8.000000100-2, 2-4, 4-6, 6-8, 8-10
9.50000100-2, 2-4, 4-6, 6-8, 8-10


What I would LIKE (example Table+Pivot):
Table
IDInOutSections
344810-2, 2-4, 4-6, 6-8
3450.14.90-2, 2-4, 4-6
346116117116-118
347343434-36
34832.332.332-34
3495134-6, 6-8, 8-10, 10-12, 12-14
35021.325.920-22, 22-24, 24-26
Pivot
ID0-22-44-66-88-1010-1212-1420-2222-2424-2632-3434-36116-118
3441111
345111
3461
3471
3481
3491111111
350111
Total3332111111111


BUT what I now have (WRONG Pivot):
Column Labels
0-20-2, 2-40-2, 2-4, 4-60-2, 2-4, 4-6, 6-80-2, 2-4, 4-6, 6-8, 8-100-2, 2-4, 4-6, 6-8, 8-10, 10-120-2, 2-4, 4-6, 6-8, 8-10, 10-12, 12-14, 14-16, 16-18, 18-20, 20-22, 22-24, 24-26, 26-28, 28-30, 30-32, 32-34, 34-36, 36-38, 38-40, 40-42, 42-44, 44-46, 46-48, 48-50, 50-52, 52-54, 54-56, 56-58, 58-60, 60-62, 62-64, 64-66, 66-68, 68-70, 70-72, 72-74, 74-76, 76-78, 78-80, 80-82, 82-84, 84-86, 86-880-2, 2-4, 4-6, 6-8, 8-10, 10-12, 12-14, 14-16, 16-18, 18-20, 20-22, 22-24, 24-26, 26-28, 28-30, 30-32, 32-34, 34-36, 36-38, 38-40, 40-42, 42-44, 44-46, 46-48, 48-50, 50-52, 52-54, 54-56, 56-58, 58-60, 60-62, 62-64, 64-66, 66-68, 68-70, 70-72, 72-74, 74-76, 76-78, 78-80, 80-82, 82-84, 84-86, 86-88, 88-90, 90-92, 92-94, 94-96, 96-98, 98-100, 100-1020-2, 2-4, 4-6, 6-8, 8-10, 10-12, 12-14, 14-16, 16-18, 18-20, 20-22, 22-24, 24-26, 26-28, 28-30, 30-32, 32-34, 34-36, 36-38, 38-40, 40-42, 42-44, 44-46, 46-48, 48-50, 50-52, 52-54, 54-56, 56-58, 58-60, 60-62, 62-64, 64-66, 66-68, 68-70, 70-72, 72-74, 74-76, 76-78, 78-80, 80-82, 82-84, 84-86, 86-88, 88-90, 90-92, 92-94, 94-96, 96-98, 98-100, 100-102, 102-104, 104-106, 106-108, 108-110, 110-112, 112-114, 114-116, 116-118, 118-120, 120-122, 122-124, 124-126, 126-128, 128-130, 130-132, 132-134, 134-136, 136-138, 138-140, 140-142, 142-14410-1210-12, 12-14, 14-16, 16-18, 18-20, 20-22, 22-24, 24-26, 26-28, 28-30, 30-32, 32-34, 34-36, 36-38, 38-40, 40-42, 42-44, 44-46, 46-48, 48-50, 50-52, 52-54, 54-56116-11832-3434-364-64-6, 6-8, 8-10, 10-12, 12-146-88-108-10, 10-12, 12-14, 14-16, 16-18, 18-20, 20-22, 22-24, 24-26, 26-28, 28-30Grand Total
Count of In223841131141114144147
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,223,886
Messages
6,175,190
Members
452,616
Latest member
intern444

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