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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi
I have list of ages (18-60) and I want to group them like (by 10)
18 - 28
29 - 39
40 - 50
51 - 60
I want to use PowerBI not Power Query. I tried to create Bin or List but I did not get it right. Any idea please. Thank you so much
Solved! Go to Solution.
@lastnn30
Create a table as follows names Band Table
Create a measure count the ages:
Count Age =
VAR __AgeBandMin = SELECTEDVALUE('Band Table'[Min] )
VAR __AgeBandMax = SELECTEDVALUE('Band Table'[Max] )
return
CALCULATE(
COUNT(Table2[Age]),
Table2[Age] >= __AgeBandMin,
Table2[Age] <= __AgeBandMax
)
Result
The file is attached below my signature
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@lastnn30
Create a table as follows names Band Table
Create a measure count the ages:
Count Age =
VAR __AgeBandMin = SELECTEDVALUE('Band Table'[Min] )
VAR __AgeBandMax = SELECTEDVALUE('Band Table'[Max] )
return
CALCULATE(
COUNT(Table2[Age]),
Table2[Age] >= __AgeBandMin,
Table2[Age] <= __AgeBandMax
)
Result
The file is attached below my signature
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Thank you so much indeed.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 63 | |
| 51 | |
| 41 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 130 | |
| 111 | |
| 48 | |
| 30 | |
| 28 |