Forum Discussion
Calculating the average factor for months with data
- 2 years ago
Hi Fistachpl
Did you apply sort by column to the Month field? If so, please add the sort reference field to the ALL function as well, you can try below measure.
AvgWsp over the year = COUNTX(ALL('TMiesiące'[Month],'TMiesiące'[Month Number]),[AvgWsp]) // Change the 'TMiesiące'[Month Number] to your acthal name, which should be use to sort by column setting.For the rationale for doing this, pls see my answer in another thread.
Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !
Thank you~
This calculates the sum of those but to get average factor I need to calculate the sum (which I already have) and divide it by the number of factors to get the average factor.
I tried to calculate by:
and got:
But in the table I want to have 5.
I know I can just use:
Hi Fistachpl
Did you apply sort by column to the Month field? If so, please add the sort reference field to the ALL function as well, you can try below measure.
AvgWsp over the year = COUNTX(ALL('TMiesiące'[Month],'TMiesiące'[Month Number]),[AvgWsp])
// Change the 'TMiesiące'[Month Number] to your acthal name, which should be use to sort by column setting.
For the rationale for doing this, pls see my answer in another thread.
Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !
Thank you~