Forum Discussion
Syndicate_Admin
Administrator
5 years agoAverage price increase
Good afternoon, I was asked to analyze the price variations of different items individually and grouped by their category (Furniture, shelves, armchairs). I have the problem to calculate the average ...
- Anonymous4 years ago
Hi Syndicate_Admin ,
Check the formula.
Measure 3 = var act = CALCULATE(SUM('fact'[precio actual]),FILTER(ALL('fact'),'fact'[articulo] in VALUES('dimensions'[articulo]))) var ant = CALCULATE(SUM('fact'[precio anterior]),FILTER(ALL('fact'),'fact'[articulo] in VALUES('dimensions'[articulo]) && 'fact'[precio actual] <> BLANK())) return (act-ant)/antBest Regards,
Jay
Anonymous
4 years agoNot applicable
Hi Syndicate_Admin ,
Check the formula.
Measure 3 =
var act = CALCULATE(SUM('fact'[precio actual]),FILTER(ALL('fact'),'fact'[articulo] in VALUES('dimensions'[articulo])))
var ant = CALCULATE(SUM('fact'[precio anterior]),FILTER(ALL('fact'),'fact'[articulo] in VALUES('dimensions'[articulo]) && 'fact'[precio actual] <> BLANK()))
return
(act-ant)/ant
Best Regards,
Jay