Forum Discussion
How to calculate new column, filter table, sort and select first
Hello,
my table is much bigger, with lot of rows, i do not need to set static value like "assets" or "liabilites", instead it needs to be calculated, based on required formula that i provided. So it is not simple IF statement in M..
I need some clarification.
1. On what basis L1 is captured?
2. On what basis L2 is captured?
Are these based on No column? If yes, what is the logic?
- hkusulja4 years agoFrequent Visitor
Hello logic for new / calculated formula is as follows:
Level1Category = select text.start (1) , filter whole same table where starting No is with that same text, sort by asc, select Name from first row
Level2Category = select text.start (2) , filter whole table, starting No with that text, sort by asc , select Name from first row
So selecting first (one or two characters), and find first (sorted-asc) Name which has the same first characters.
something like (not correct syntaxt, just indication)
Level1Category = (select value 'name', select first row (sorttable ( tablefilter (each row No starts with = firstcharacter of No)))