Forum Discussion
AlexanderRbt
Helper I
7 years agoCreating average grouped by multiple grouping variables
Hi all, I would like to create a measure that represents the average of two (or potentially more) categories. My data looks like this User Cat_A Value 1 East 30 1...
- 7 years ago
Try:
Average of response average per CAT=
CALCULATE(AVERAGE('answers_valid'[value]),
ALLEXCEPT('my_data','my_data'[Cat_A],'my_data'[Cat_B]))Appreciate your Kudos
Connect with me!
amitchandak
Super User
7 years agoPlease check quick measure option. Right click on a table or field and click on Quick measure. And then try
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
Thanks.
AlexanderRbt
Helper I
7 years agoHello amitchandak
Thanks for your idea. This is precisely what I tried with one grouping variable and it works perfectly. However, what if I have two grouping variables (User and Cat_A in my example).
Any ideas?
Thanks,
A.
- SteveCampbell7 years ago
Memorable Member
Try:
Average of response average per CAT=
CALCULATE(AVERAGE('answers_valid'[value]),
ALLEXCEPT('my_data','my_data'[Cat_A],'my_data'[Cat_B]))Appreciate your Kudos
Connect with me!