Forum Discussion
MartynasBI
3 years agoFrequent Visitor
Calculating average based on a text column
Hi, I have a following sample of the data set. I would like to be able to calculate the average based on a text column (please refer to the “Update” column). From this data there are 6 tot...
Kishore_KVN
3 years agoSolution Sage
Hello MartynasBI
You can use count and distinct count combination to achieve this.
DAX looks a below:
Average =
Var A = COUNT('Counting Weeks Data'[Update])
Var B = DISTINCTCOUNT('Counting Weeks Data'[Week])
Return
DIVIDE(A,B,BLANK())
If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!
MartynasBI
3 years agoFrequent Visitor
Hi Kishore_KVN ,
Unfortunately it did not work. Apologies, my provided data might not have been fully representative of what I am working with. Please find the below data set example
The goal remains the same - to calculate the average updates per week.
Thanks
- Kishore_KVN3 years agoSolution Sage
Can you please share the expected output as well!!!