ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
onesoftwareA12/6/2021onefiveworkstreamhardwareprocesssoftware
2
twohardwareA12/7/2021elevenonefiveA413step 1 replace number values for key wordsfor the total row we will do the same byt we will query it in a different way
3
threesoftwareA12/8/2021onefourB32softwarehardware#N/AAB
4
fourhardwareA12/9/2021nineTOTAL715hardwaresoftwarehardware43
5
fivehardwareB12/6/2021onesoftwarehardware#N/A1
6
sixhardwareB12/8/2021twoprocess#N/A#N/A32
7
sevenhardwareB12/10/2021onetwotwelvesoftware#N/A#N/A
8
eightsoftwarehardware#N/A#N/Awe remove header rows
9
nineprocesssoftwarehardwarehardware43
10
tenprocess#N/A#N/A#N/A1
11
elevenhardware#N/A#N/A#N/A32
12
twelvehardwareworkstreamhardwareprocesssoftware
13
A413join it with D columnand multiply it by 1 to get 0s instead of empty cells
14
B302A×softwareA×hardware#N/A43
15
TOTAL715A×hardwareA×softwareA×hardware10
16
A×softwareA×hardware#N/A32
17
A×process#N/A#N/A
18
B×software#N/A#N/Anext we use mmult to sum it up
19
B×hardware#N/A#N/A7
20
B×softwareB×hardwareB×hardware1
21
#N/A#N/A#N/A5
22
#N/A#N/A#N/A
23
in D column there are 2 unique values eg. {1;1} so to make it dynamic we use
24
flaten it into one columnand split it on unique symbol2
25
A×softwareAsoftware
26
A×hardwareAhardwareand make a sequence of it
27
#N/A#N/A1
28
A×hardwareAhardware1
29
A×softwareAsoftware
30
A×hardwareAhardwarenext we just transpose mmult
31
A×softwareAsoftware715
32
A×hardwareAhardware
33
#N/A#N/Aand add TOTAL label in array
34
A×processAprocessTOTAL715
35
#N/A#N/A
36
#N/A#N/Anow we join it:
37
B×softwareBsoftwareworkstreamhardwareprocesssoftware
38
#N/A#N/AA413
39
#N/A#N/AB32
40
B×hardwareBhardwareTOTAL715
41
#N/A#N/A
42
#N/A#N/Aall steps together will give us
43
B×softwareBsoftwareworkstreamhardwareprocesssoftware
44
B×hardwareBhardwareA413
45
B×hardwareBhardwareB32
46
#N/A#N/ATOTAL715
47
#N/A#N/A
48
#N/A#N/A
49
#N/A#N/A
50
#N/A#N/A
51
#N/A#N/A
52
53
and next we query it and pivot it:
54
workstreamhardwareprocesssoftware
55
A413
56
B32
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100