Forum Discussion
harrinho
Helper III
8 years agoIF Statement
Hi, I have the following table with measures from two different sources, however, joins on ID are fine and working. My issue is that the if statement i have built doesn't return any result. ...
Interkoubess
Solution Sage
8 years agoHi harrinho,
I have a question to better understand your request.
Why 4 conditions because I only see 1 if ( If I am correct):
1. If Soft Hours > Hard Hours, return Soft+Hard else Hard hours
Please check this and let us know.
Ninter
harrinho
Helper III
8 years agoIndeed, I just deployed it in detail to explain the context better :)
I amended the query as per below
Total Allocations = IF(CALCULATE(SUM('CLARITY ALLOCATIONS'[Soft Hours]))>CALCULATE(SUM('CLARITY HARD ALLOC'[Hard_Hrs])),CALCULATE(SUM('CLARITY ALLOCATIONS'[Soft Hours])+SUM('CLARITY HARD ALLOC'[Hard_Hrs])),CALCULATE(SUM('CLARITY HARD ALLOC'[Hard_Hrs])))But I get odd results again