Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have 1 table with a column of continuous dates over 4 years, and a column of ages.
I want a measure that shows the percentage of each age group against the yearly totals, rather than total over the 4 years.
The current measures I have are:
- COUNT(Table[Age])
- COUNTROWS(ALL(Table) ............... which gives me all rows rather than all rows per year
then - DIVIDE([AgeCount],[TotalCount])
Apologies for this probably simple question!
Many thanks.
Solved! Go to Solution.
Hi !
You can use the following DAX measures to get desired output;
Age Count = COUNT(Employee[Age])
Total Age Count = CALCULATE([Age Count], ALLSELECTED(Employee[Age Group]))
% Age = DIVIDE([Age Count], [Total Age Count])
Regards,
Hasham
Hi !
You can use the following DAX measures to get desired output;
Age Count = COUNT(Employee[Age])
Total Age Count = CALCULATE([Age Count], ALLSELECTED(Employee[Age Group]))
% Age = DIVIDE([Age Count], [Total Age Count])
Regards,
Hasham
This is great, thanks!
@sparker22
If you can share some sample data and the expected result, it would be of great help.
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 19 | |
| 17 | |
| 11 |