The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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,
User | Count |
---|---|
86 | |
84 | |
35 | |
35 | |
35 |
User | Count |
---|---|
94 | |
79 | |
63 | |
55 | |
52 |