Forum Discussion
Zbig62
2 years agoRegular Visitor
problem with calculating the average using variables defining a range of values
Hello I am a beginner DAX user and I have a serious problem with calculating the average using variables defining a range of values. The problem is as follows: Table: 'public Measurement' 1. aver...
- 2 years ago
welcome back
Thank you for your suggestions, it allowed me to locate the problem.
Instead of count() I used the countx() function and it works very well
thank you againvar stop_av = CALCULATE(COUNTX('public Measurement';'public Measurement'[number]);FILTER(ALLSELECTED('public Measurement');'public Measurement'[characteristicId] = MAX('public Measurement'[characteristicId])))