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 moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi,
I need help with a formula to show total capacity per day by individual service from the table below.
Basically I need the results to show exact total capacity number as shown in the data table below. Please note that the the below table itself is the data source.
| Service Category | Hours Per Day | Capacity | Total Capacity Per Day |
| Service 1 | 16 | 16 | 256 |
| Service 2 | 16 | 3 | 48 |
| Service 3 | 16 | 1 | 16 |
| Service 4 | 16 | 2 | 32 |
| Service 5 | 16 | 1 | 16 |
| Service 6 | 16 | 3 | 48 |
| Service 7 | 16 | 3 | 48 |
| Service 8 | 16 | 2 | 32 |
| Service 9 | 16 | 3 | 48 |
| Service 10 | 16 | 8 | 128 |
| Service 11 | 16 | 2 | 32 |
| Service 12 | 16 | 2 | 32 |
Solved! Go to Solution.
Hi @AmeenVanakar ,
Try this. I have attached the file below. Thanks
Regards,
Thanks! This worked.
Hi @AmeenVanakar ,
Try this. I have attached the file below. Thanks
Regards,
Hey @AmeenVanakar ,
You can calculate Total Capacity Per Day inside Power Query without using DAX. Since the total is simply the product of Hours Per Day and Capacity, follow these steps:
1. Load your data into Power Query.
2. Go to the Add Column tab and choose Custom Column.
3. In the formula field, type:
= [Hours Per Day] * [Capacity]
4. Give the column the name Total Capacity Per Day and confirm.
This will return the exact figures from your example for instance, if Hours Per Day = 16 and Capacity = 16, the total will be 256. If you prefer to do it directly in Excel after loading the data, you can add a column in the table and use:
=[@Hours Per Day] * [@Capacity]
Both methods will give the same outcome; using the Power Query approach ensures the calculation is part of your data transformation process.
If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.
Best Regards,
Nasif Azam
Thanks for the help!
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 |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 5 | |
| 5 | |
| 4 |