Forum Discussion
Calculate, sum? need help with a formula
- 8 years ago
Hello,
I used ID instead of KostElementID, might be a little confusing because you have several IDs
FILTER(LN;LN[KostElementID]=EARLIER(KontElement[KostElementID]) hopefully works now.
Floriankx wrote:Hello,
you're right. Formula was incomplete:
=CALCULATE(MIN(LN[Datum]);FILTER(LN;LN[Leistung...]="Objektbegehung");FILTER(LN;LN[ID]=EARLIER(KontElement[ID])))
Mit freundlichen Grüßen
Best regards
Hello,
I didn´t get it.
Until =CALCULATE(MIN(LN[Datum]);FILTER(LN;LN[Leistung...]="Objektbegehung"); everthing is clear to me.
Can u please forget the second filter (mandatID) i mentioned before and built the formula with the new expression earlier?
in hope to understand it and thank u a lot
Hello,
FILTER(LN;LN[ID]=EARLIER(KontElement[ID])
Earlier works in row context. It takes the ID of the current row in LN and compares it to the IDs of KontElement and so filters all the IDs which are similar to the current ID (also order of the formular suggests upside down). The second filter eliminates all except Objektbegehung and the MIN Term gives you the earliest date.
- BachFel8 years ago
Helper II
Probably I still didn´t get it..
- Floriankx8 years ago
Solution Sage
Hello,
you wrote:
FILTER(LN;KontElement[ID]=EARLIER(KontElement[ID])
instead of
FILTER(LN;LN[ID]=EARLIER(KontElement[ID])
Please correct and let me know
- BachFel8 years ago
Helper II
Hello,
I wrote
FILTER(LN;KontElement[ID]=EARLIER(KontElement[ID])
instead of
FILTER(LN;LN[ID]=EARLIER(KontElement[ID])
because in the table LN there is now column with the expression you took.