Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi Community,
I am trying to find a sum of calculated average values, but couldn't achieve the expected result.
My model consists of 2 columns Production & Days, Rate is measure calculated by following formulae
Rate = Production / Days
My challenge is achieving subtotal for Rate
In the subtotal of Rate, I need to show the Sum of Rates (11658.56 Highlighted in table) instead of Avg (2814.48 Current output),
Expected Table
factory | Production | Days | Rate |
Region A | 31445.37 | 11 | 2858.67 |
Region B | 0 | 0 | 0 |
Region C | 56848 | 13 | 4372.923077 |
Region D | 83967.15 | 29 | 2895.418966 |
Region E | 0 | 0 | 0 |
Region F | 27567.9 | 18 | 1531.55 |
Region G | 0 | 0 | 0 |
Subtotal | 199828.4 | 71 | 11658.56204 |
Kindly help
Regards
Prabhu
Solved! Go to Solution.
Hi @Prabhu11
I tried to count work_stats based on factory so that it takes the date count for each factory. By using that i divide that value to production value.
Please find the below measure and screenshot for your reference.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
thanks,
Hi @Prabhu11 ,
Has your problem been solved? If solved, please consider Accept it as the solution to help the other members find it more quickly.
Best regards,
Yadong Fang
Hi @Prabhu11 ,
Please find the below screenshot and measure for your reference.
Add a column in the table which has data.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Thanks,
Dear Shreeram,
Thanks for the response, I couldn't achieve the expected result because my Days column will be always One,
I'm counting all by using the SUM function.
Attached is the PBIX file for your reference kindly check
Regards
Prabhu
Hi @Prabhu11
I tried to count work_stats based on factory so that it takes the date count for each factory. By using that i divide that value to production value.
Please find the below measure and screenshot for your reference.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
thanks,
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
56 | |
54 | |
54 | |
37 | |
29 |
User | Count |
---|---|
77 | |
63 | |
45 | |
40 | |
40 |