Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi, I was having trouble with this calculation. I have tried many ways but I'm not getting the right answer. I'm confused with using measures of column too.....
Solved! Go to Solution.
Hi, @Anonymous
Try measure as below:
NPT_%_new =
CALCULATE (
SUM ( Sheet1[NPT_HRS] ) / SUM ( Sheet1[COMPLETION_HRS] ),
ALLEXCEPT ( Sheet1, Sheet1[YEAR] )
)
Refer to sample file for more details.
Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hi, I would reccomend you to post a example data input and the expect result and explain what you want the measures to do exactly, for a better response.
Proud to be a Super User!
@StefanoGrimaldi hi. This is my pbix file. For that formula, I need a straight average line to include in this chart. For year 2020, the AVG NPT % should be 9.7%. Appreciate if you could help me
https://1drv.ms/u/s!AoKh3nlpMpSOgmP2W6IHiupBOk3U?e=zHodcX
Hi, @Anonymous
Try measure as below:
NPT_%_new =
CALCULATE (
SUM ( Sheet1[NPT_HRS] ) / SUM ( Sheet1[COMPLETION_HRS] ),
ALLEXCEPT ( Sheet1, Sheet1[YEAR] )
)
Refer to sample file for more details.
Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |