cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Psycho
Frequent Visitor

Creat a comparative conditions

Hello together!

 

I have a question for the creation of certain conditions.

 

I want to calculate following, but i dont know the syntax:

 

02 Dur.Bestmge.AktJ = if(Tabelle1[Monat] = "End.Best.Mge.AktJ.02" ; ....

 

....   (the  value [Bestand] of this row + the value [Bestand] of that row, with the same value in the column [Artikelnummer] and the value "End.Best.Mge.AktJ 01" in the column [Monat]) divided by 2

 

 

Unbenannt.png

 Have someone a solution for me?
 
Thanks and greetings.
1 ACCEPTED SOLUTION
mpo
Helper II
Helper II

If I understood you correctly, try

 

02 Dur.Bestmge.AktJ = if(Tabelle1[Monat] = "End.Best.Mge.AktJ 02",
Tabelle1[Bestand]+LOOKUPVALUE(Tabelle1[Bestand],
Tabelle1[Artikelnummer],Tabelle1[Artikelnummer],
Tabelle1[Monat],"End.Best.Mge.AktJ 01"),0)

View solution in original post

2 REPLIES 2
mpo
Helper II
Helper II

If I understood you correctly, try

 

02 Dur.Bestmge.AktJ = if(Tabelle1[Monat] = "End.Best.Mge.AktJ 02",
Tabelle1[Bestand]+LOOKUPVALUE(Tabelle1[Bestand],
Tabelle1[Artikelnummer],Tabelle1[Artikelnummer],
Tabelle1[Monat],"End.Best.Mge.AktJ 01"),0)

View solution in original post

Psycho
Frequent Visitor

Yes, that´s what I want. Wonderfull. Thank you very much.

Helpful resources

Announcements
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Urdu Hindi D365 Bootcamp 768x460.png

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors