Forum Discussion
stevehuff
2 years agoFrequent Visitor
Creating a calculated column that depends on two different conditions
Hello! New to PowerBI and hoping that I can get some assistance in building out a report. We're looking to generate a report to show the percentage increase/decrease for lease amounts tied to the sam...
Ashish_Mathur
Super User
2 years agoHi,
Write these calculated column formulas
Previous rent = LOOKUPVALUE(Data[Rent],Data[Move-In Date],CALCULATE(MAX(Data[Move-In Date]),FILTER(Data,Data[Building]=EARLIER(Data[Building])&&Data[Move-In Date]<EARLIER(Data[Move-In Date]))),Data[Building],Data[Building])Rent growth (%) = DIVIDE(([Rent]-[Previous rent]),[Previous rent])
Hope this helps.