Forum Discussion
sublog
Helper III
5 years agoSame Store Sales Growth in Calculation Groups?
Hi all, working in Tabular Editor, I have created some calculation groups that measure YTD/MTD Year over Year growth %, but I would like to only calculate this for locations that had sales in the pri...
amitchandak
Super User
5 years agosublog , Assuming you have location[location] or table[location]
Change in your formula at the end
VAR YOYQTD = Sumx(values(Location[Location]), if(not(isblank(PYQTD)), ( CYQTD - PYQTD ), blank()))
RETURN
DIVIDE ( YOYQTD, PYQTD )
sublog
Helper III
5 years agoOkay, I replaced the VAR YOYQTD = ( CYQTD - PYQTD ) section with what you gave me above, but the numbers are not correct? I assume you meant location as the table that contains my locations?