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
can you share file with pivot table
Anonymous
2 years agoNot applicable
- Ahmedx2 years agoSuper User
why is this range not included in your formula?
- Anonymous2 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