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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello, I am in need of assistance. I have a table that I would like to calculate the percent of a category total by date in power query. The table is structured similar to the following:
I would like to have another column for the percentage of total by category and date. Category being building. For example, the first row column would be calculated as 100 (units on 10/1/2023 for machine 1 building 1) /300 (total units made in building 1 on 10/1/2023) The result would be .33. The second row would be 200(units on 10/1/2023 for machine 2 building 1)/300 (total units made in building 1 on 10/1/2023)resulting in .66. Can anyone help? I am having trouble adding up all the units in the building per day and then dividing the units made by machine per units in the building each day. Thank you.
Solved! Go to Solution.
After turning the units into numbers, you can group by date, and sum the units, also, choosing the all rows aggregation. Then expand the table column, after which you can just do the row math.
--Nate
After turning the units into numbers, you can group by date, and sum the units, also, choosing the all rows aggregation. Then expand the table column, after which you can just do the row math.
--Nate
Thank you this worked perfect!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 10 | |
| 6 | |
| 5 | |
| 4 | |
| 2 |