Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have the table below in Power BI. The "popgrp" column goes from 1 to 6. How do I create a measure for the index such that will average the "INDEX" when I fiter by city and/or popgrp
Solved! Go to Solution.
Hi @Chuky01 ,
Do you want to display data like this?
If yes, you can try @az38 's measure.
Or you can achieve this in Power Query Editor using the following steps.
1. Copy the table.
2. Then group by the Table (2).
3. At last, merge the Table.
If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
BTW, pbix as attached.
Hi @Chuky01 ,
Do you want to display data like this?
If yes, you can try @az38 's measure.
Or you can achieve this in Power Query Editor using the following steps.
1. Copy the table.
2. Then group by the Table (2).
3. At last, merge the Table.
If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
BTW, pbix as attached.
Hi @Chuky01 ,
Can you simply create a new measure with DAX using Average function:
New Measure = AVERAGE('TableName'[INDEX])
You can also put summarization as 'Average' for INDEX column when you pull it in your visualizations.
Give a thumbs up if this post helped you in any way and mark this post as solution if it solved your query !!!
@Anand24 Thanks for the response, though it does not seem to be working. It showes the average of all the rows even when I filter by state or popgrp
User | Count |
---|---|
123 | |
77 | |
62 | |
50 | |
48 |
User | Count |
---|---|
175 | |
125 | |
61 | |
60 | |
58 |