Forum Discussion
Measure does not sum in table
Hi,
I was wondering if anyone could help.
I have a measure (UK Days Available) which uses data from two tables:
When I have this measure in a table by name of employee, it does not sum the total number of days available, it just shows -4 as the total:
Can someone help me to get these days to sum up please?
MissBI_21 create another measure and use it for visualization
New Measure = SUMX ( VALUES ( YourTable[Employee] ), [Existing UK Days Available Measure] )✨ Follow us on LinkedIn
Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
7 Replies
- Greg_Deckler
Community Champion
MissBI_21 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 - parry2k
Super User
MissBI_21 create another measure and use it for visualization
New Measure = SUMX ( VALUES ( YourTable[Employee] ), [Existing UK Days Available Measure] )✨ Follow us on LinkedIn
Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
- parry2k
Super User
MissBI_21 not sure but maybe something like this:
New Measure = SUMX ( VALUES ( YourTable[Employee] ), IF ( CALCULATE ( MAX ( YourTable[Employee] ) ) IN { "X", "Y", "Z" }, 1, [Existing UK Days Available Measure] ) ) )✨ Follow us on LinkedIn
Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
- MissBI_21
Helper II
It almost worked.. I have a filter on dates to only display the previous two months. With the measure you sent, for some reason, the table displays all months.