Forum Discussion
Total Hours Total not working as expected
I am creating a metrics report for billable time and am trying to calculate the target billable time a team member needs to hit their target.
I have created a measure that works out the available working hours in the month:
The issue I have is when I then try to work out the target hours they need to hit to achieve their KPI utilisation target
Available time2 = 'Int Targets'[Available Working Hours] /100 * 'Int Resources'[KPI]
The KPI target is stored in another resource table.
I am quite new to DAX/Powerbi so any help would be appreciated 😁
5 Replies
- Greg_Deckler
Community Champion
Gartski83 Two ways to potentially solve the issue. One, you could potentially make your relationship between Int Targets and Int Resources have a direction of Both. The second solution would be to use LOOKUPVALUE or MAXX(FILTER(...),...) to lookup your KPI Target in Int Resources.
- Gartski83Regular Visitor
Thanks for the response i was looking at your book on Amazon yesterday.
I have tried changing the direction to both with no joy 😞
I tried a measure for this as well which gives me the correct answer for a resource but the total appears to be way out
Hours Target = 'Int Targets'[Available Working Hours] /100 * 'Int Resources'[KPI]I am not sure my DAX skills would stretch to LOOKUPVALUE formulas yet- Greg_Deckler
Community Champion
Gartski83 First, please vote for this idea: https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e
This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376
Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907
Also: https://youtu.be/uXRriTN0cfY
And: https://youtu.be/n4TYhF2ARe8