Forum Discussion
Paritäa
3 years agoFrequent Visitor
IF statement for each row
Hi everyone! So I have been working on this problem the whole day and tried so many different ways to solve it but it just won't work! I have a table, each row is a new address which has a value...
- Anonymous3 years ago
Hi Paritäa ,
According to your description, here are my steps you can follow as a solution.
(1) Enter data.
(2) We can create a calculated column.
Sum of value = SWITCH( [Row name], "0-9.9",SUMX(FILTER('Table (2)',[Value]>=0&&[Value]<10),[Value]), "10-19.9",SUMX(FILTER('Table (2)',[Value]>=10&&[Value]<20),[Value]), "20-29.9",SUMX(FILTER('Table (2)',[Value]>=20&&[Value]<30),[Value]), "30-39.9",SUMX(FILTER('Table (2)',[Value]>=30&&[Value]<40),[Value]), "40-49.9",SUMX(FILTER('Table (2)',[Value]>=40&&[Value]<50),[Value]), "+50",SUMX(FILTER('Table (2)',[Value]>50),[Value]))(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Paritäa
3 years agoFrequent Visitor
Because I don't know how to insert the ëxample file, I'll just put the table in here:
| Address | Value |
| A | 2.5 |
| B | 2.8 |
| C | 2.4 |
| D | 2.4 |
| E | 2.5 |
| F | 2.6 |
| G | 1.2 |
| H | 2.7 |
| I | 3 |
| J | 2.8 |
| K | 1.8 |
| L | 5.2 |
| M | 3.4 |
| N | 3 |
| O | 1 |
| P | 2.5 |
| Q | 8.4 |
| R | 1.5 |
| S | 14.3 |
| T | 15.7 |
| U | 1.7 |
| V | 6.6 |
| W | 12.8 |
| X | 22 |
| Y | 17.4 |
| Z | 10 |
| AA | 20.4 |
| AB | 80 |
| AC | 15 |
| AD | 1.7 |
| AE | 1.7 |
| AF | 50 |
| AG | 6 |
| AH | 12 |
| AI | 1.2 |
| AJ | 22 |
| AK | 6.7 |
| AL | 1 |
| AM | 12 |
| AN | 21 |
| AO | 25.5 |
| AP | 49.5 |
| AQ | 25.5 |
| AR | 50 |
| AS | 34.5 |
| AT | 80 |
| AU | 30 |
| AV | 10.2 |
| AW | 15 |
| AX | 12 |
| AY | 4.8 |
| AZ | 26.5 |