Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Why is my total calculated incorrectly?

 

My 'Recognized' column above is calculating the wrong total at the bottom. How do I fix this?

 

This column is a new measure, using the following DAX: 

Recognized = IF(Projects_Task_Workplans[BudgetHours minus ActualHours]<0,0,IF((Projects_Task_Workplans[BudgetHours minus ActualHours]-sum(Projects_Task_Workplans[ScheduledHours])>0),sum(Projects_Task_Workplans[ScheduledHours]),Projects_Task_Workplans[BudgetHours minus ActualHours]))
 
Thanks in advance!

2 Replies