Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have given below dataset
I would like to create a new calculated table using the above given table where we can categorise the city gender and an age group for summing up the "Numbers" Column.
Please help.
Thanks in Advance!
Solved! Go to Solution.
Add a new calcualted column like this.
Age Group =
SWITCH (
TRUE (),
Table[Age] < 12, "0-11",
Table[Age] < 16, "12-15",
Table[Age] < 25, "16-24",
Table[Age] < 31, "25-30",
Table[Age] < 36, "31-35",
Table[Age] < 41, "36-40",
"40+"
)
You would just need to adjust the ranges to match what you want to show in your report.
Hi @ashishoza12345,
Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Hi,
After creating the calculated column as suggested by @jdbuchanan71, create a matrix visual and drag City/Gender to the row labels and Age Group to the column labels. Write this measure
Total = sum(Data[Numbers])
Hope this helps.
Add a new calcualted column like this.
Age Group =
SWITCH (
TRUE (),
Table[Age] < 12, "0-11",
Table[Age] < 16, "12-15",
Table[Age] < 25, "16-24",
Table[Age] < 31, "25-30",
Table[Age] < 36, "31-35",
Table[Age] < 41, "36-40",
"40+"
)
You would just need to adjust the ranges to match what you want to show in your report.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
72 | |
71 | |
37 | |
31 | |
27 |
User | Count |
---|---|
91 | |
49 | |
45 | |
38 | |
36 |