Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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)
Psycho
Frequent Visitor

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.