Forum Discussion
Substract column - measure
- 4 years ago
Arti12 , A measure like
sales =
var _max = maxx(allselected('Date'),'Date'[Week])
var _min = minx(allselected('Date'),'Date'[Week])return
calculate([Measure], filter('Date', 'Date'[Week] =_max)) - calculate([Measure], filter('Date', 'Date'[Week] =_min))or
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Arti12 , A measure like
sales =
var _max = maxx(allselected('Date'),'Date'[Week])
var _min = minx(allselected('Date'),'Date'[Week])
return
calculate([Measure], filter('Date', 'Date'[Week] =_max)) - calculate([Measure], filter('Date', 'Date'[Week] =_min))
or
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Dear amitchandak,
Thanks for answer. Unfortunately I can't send the source but let me be more specific.
The problem is that I cannot insert any column in the model, only measures. I would like to have only one value in the end - the result of substraction.
Is it possible to implement?
I've tried your measure but it didn't work.
BR,
Artur
- Anonymous4 years agoNot applicable
Hi Arti12,
Can you please share a pbix or some dummy data that keep raw data structure with expected results? It should help us clarify your scenario and test to coding formula.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng