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

Calculated column

Hey guys, 
I wanna calculate a new column with the following formula "column A - column B + column C" but the problem is that I can only get the value right for the first row. 
how can I write a DAX function that would get the value of last index " e.g. in excel I would write ="NewColumn"2+[@C] and so on"
thanks ! 

Screenshot (309).png

3 REPLIES 3
Greg_Deckler
Super User
Super User

@Murakami I don't understand what you are trying to do, are you trying to take the value of C from the previous row? If so, that is likely not going to work as that essentially requires recursion.


@ me in replies or I'll lose your thread!!!
Check out my External Tool for Power BI Desktop! Microsoft Hates Greg's Quick Measures
YouTube Channel! Microsoft Hates Greg
Check out my latest book!

@Greg_Deckler  

well yeah that's basically what I'm trying to do, so recursion functions are not possible in power BI? 
e.g. @C2 the value should be "1790930,93-1631244,46 + 2540804,2" 

@Murakami Not really. Previous Value aka "Recursion" - Microsoft Power BI Community


@ me in replies or I'll lose your thread!!!
Check out my External Tool for Power BI Desktop! Microsoft Hates Greg's Quick Measures
YouTube Channel! Microsoft Hates Greg
Check out my latest book!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.