Forum Discussion
Anonymous
2 years agoNot applicable
dax
p3m = var a= MAX('PSR'[Month])-2 var b =CALCULATE(DISTINCTCOUNT('PSR'[Customer_Code]),'PSR'[Month]>=a && 'PSR'[Month]<=MAX('PSR'[Month])) return b this is the formula for the above visual...
Ahmedx
2 years agoSuper User
why is this range not included in your formula?
Anonymous
2 years agoNot applicable
oh my bad you can include everything
- Ahmedx2 years agoSuper User
Measure 2 = var a= MAX('PSR'[Month])-2 var b =CALCULATE(DISTINCTCOUNT('PSR'[Customer_Code]),'PSR'[Month]>=a && 'PSR'[Month]<=MAX('PSR'[Month])&& 'PSR'[sale]>0) return b- Anonymous2 years agoNot applicable
this measure is fine but not 100% correct. after taking sum of retailing then the distinct count should be applied.
- Anonymous2 years agoNot applicable
Ahmedx ?