Forum Discussion
Group rows within some categories
- 5 years ago
Ok. Since your bins don't seem to be the same size, you can't do a simple rounding to get them. The simplest way might be to make a table with 90 rows for each age and their associate bin, and merge that into your query on the Age column. You can then do a Group By step to get the sum of the newly added Bin column.
Pat
You could do this with the Group/Bin column. Please see this article. Doing it in the query editor, would be harder (but doable) and would limit the analyses you can do with your dataset.
Use grouping and binning in Power BI Desktop - Power BI | Microsoft Docs
Pat
- Anonymous5 years agoNot applicable
Hi Pat,
Thank you a lot for your information. However I want this to be done with query editor because there is another table that I want to create relationship with this table. That table is from another data source and have the ranges in it so it's best that I get this done. Can you help with the Query Editor?
Cheers,
P-