Table:
0
A
B
C
D
E
F
G
H
I
1
Autonomous Community
Hydroelectric power
Wind power
Solar power
Biomass power
Solid waste power
Total Renewable Generation
Total Electricity Demand
% Renewable of Total Electricity Demand
2
Castile and León
6960
3840
14
274
87
11175
15793
70.8%
3
Galicia
7561
5970
1
242
317
14091
20279
69.5%
4
La Rioja
124
897
1
3
2
1027
1860
55.2%
5
Aragón
3073
3342
1
63
8
6487
11885
54.6%
6
Navarre
379
2248
28
269
0
2924
5401
54.1%
7
Extremadura
2244
0
1
0
0
2245
5076
44.2%
8
Castile-La Mancha
710
3935
8
99
34
4786
12686
37.7%
9
Asturias
1680
357
0
221
400
2658
12391
21.5%
10
Cantabria
875
0
0
11
41
927
5693
16.3%
11
Catalonia
3223
301
7
77
241
3849
48498
7.9%
12
Andalusia
946
1042
5
728
0
2721
40737
6.7%
13
Basque Country
336
339
3
55
326
1059
20934
5.1%
14
Valencia
1041
266
13
55
0
1375
27668
5.0%
15
Canary Islands
0
288
0
0
0
288
9372
3.1%
16
Balearic Islands
0
5
0
0
133
138
6235
2.2%
17
Murcia
65
93
6
12
0
176
8334
2.1%
18
Madrid
83
0
8
58
330
479
30598
1.6%
19
Ceuta & Melilla
0
0
0
0
2
2
391
0.5%

Questions and formulas:
Question: How many communities had a total renewable generation of 1375?
Formula: ROWS(UNIQUE(FILTER(A1, G1=1375)))
Formula2: ROWS(UNIQUE(FILTER(A2:A19, G2:G19=1375)))
Level: medium
Question: What is the total demand for electricity when the demand for renewable electricity demand is 2.2%?
Formula: SUMIFS(H1,I1,"2.2%")
Formula2: SUMIFS(H2:H19,I2:I19,"2.2%")
Level: easy
Question: What is the lowest numbered hydroelectric power when the renewable electricity demand is 21.5%?
Formula: MINIFS(B1,I1,"21.5%")
Formula2: MINIFS(B2:B19,I2:I19,"21.5%")
Level: easy
Question: What is the community with a wind power of 1042?
Formula: LET(query1,SUMMARIZE(A1,SUMX(C1)),FILTER(query1,CHOOSECOLS(query1,2)=1042))
Formula2: LET(query1,SUMMARIZE(A2:A19,SUMX(C2:C19)),FILTER(query1,CHOOSECOLS(query1,2)=1042))
Level: hard