Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hello,
We have a table containing "Job ID", "Job Type" and "Revenue" (and a lot more - not important).
The problem is we have 30+ job types, and we would like to put them into 4 groups.
The goal is to look at revenue per job type - so instead of revenue per 30+ job types, we would like to see the revenue per 4 combined types.
So lets say Job type 1-10 Should belong to "Jop Type A", Job type 11-20 should be "Job Type B" etc.
Is there an easy way for us to do that in this huge data table?
Thanks!
Solved! Go to Solution.
Right,
Creating a group following the link i posted before should work fine
Use grouping and binning in Power BI Desktop
In short, right click on the column -> New group, in group type choose list and than group them in any way you like
Hi,
You could try and create a group:
Use grouping and binning in Power BI Desktop
But as PattemManohar says posting some sample test data could be useful to give a accurate solution
Sample data:
| Job ID | Job Type | Revenue | NEW |
| 1 | Banana | 10 | Fruit |
| 2 | Apple | 4 | Fruit |
| 3 | Grape | 10 | Fruit |
| 4 | Red | 100 | Wine |
| 5 | White | 200 | Wine |
| 6 | Rosé | 150 | Wine |
| 7 | Red | 100 | Wine |
| 8 | Banana | 10 | Fruit |
| 9 | Apple | 10 | Fruit |
| 10 | Grape | 10 | Fruit |
| 11 | T-shirt | 200 | Clothes |
| 12 | Pants | 230 | Clothes |
| 13 | Pants | 250 | Clothes |
| 14 | T-shirt | 200 | Clothes |
| 15 | Banana | 10 | Fruit |
| 16 | Apple | 5 | Fruit |
| 17 | Grape | 7 | Fruit |
| 18 | Red | 120 | Wine |
| 19 | White | 200 | Wine |
| 20 | Rosé | 350 | Wine |
| 21 | Banana | 10 | Fruit |
| 22 | Apple | 5 | Fruit |
| 23 | Grape | 5 | Fruit |
| 24 | T-shirt | 100 | Clothes |
| 25 | Pants | 250 | Clothes |
So the "NEW" column is how I think it could be 🙂
Right,
Creating a group following the link i posted before should work fine
Use grouping and binning in Power BI Desktop
In short, right click on the column -> New group, in group type choose list and than group them in any way you like
@Gordonlilj In this case we need to group based on the total revenue (which is another field). So can't use normal grouping option.
Proud to be a PBI Community Champion
Thanks @Anonymous for sample data.
Is NEW column is your expected output ? or that is what need to considered for JobType to calculate Revenue - Please confirm.
Proud to be a PBI Community Champion
@Anonymous Hope this is what you are after..
Create a New Table as below
Test310Out = SUMMARIZE(Test310Groups,Test310Groups[JobType],"Revenue",SUM(Test310Groups[Revenue]))
Then, add Rank field to the above table as below
Rank = RANKX(Test310Out,Test310Out[Revenue],,DESC,Dense)
Finally, add a Grouping field based on the Revenue (which we have assigned Rank in above step)
Group = IF(Test310Out[Rank]<=5,"Type A",IF(Test310Out[Rank]<=10,"Type B","Other"))
Proud to be a PBI Community Champion
@Anonymous Please post sample test data to suggest an accurate solution. But from the lines of your requirement, I suggest to create a Rank field which will give you the rank based on their Revenue and then use this Rank field to create a groups using DAX
Proud to be a PBI Community Champion
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 37 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 69 | |
| 67 | |
| 32 | |
| 27 | |
| 26 |