Forum Discussion
Incorrect value used from IF(ISBLANK calculation
Hi everyone,
I hope someone can help me with this. I cannot work out why formula 1 is picking up the right value '8000' but in the next calculation step in formula 2 the default value is picket up as '6900' and the Est. Tips/Planting results in 16.51 insead of '14.23'.
Can anyone help with this?
Est Cobs Planting= 113909
BI_Planting[Est. Pieces/Tip = 8000
Deafult_Corn Tips= 6900
Desired Result= 14.23
Formula 1 - This formula should pick Est. Pieces/Tip which is 8000 correctly
Sorry for not making myself clear enough.
Deafult_Corn Tips= 6900 should be ignored if a value exist for BI_Planting[Est. Pieces/Tip = 8000
I was able to reslove this by using this formula:
Formula 1 =
(Corn) Est.Tips/Planting No Sum =DIVIDE(SUM('BI_Planting'[(Corn) Est. Cobs/ Planting]),SUM('BI_Planting'[(Corn) Tip Default])Formula 2 =(Corn) Est. Tips/ Planting = SUMX(SUMMARIZE(BI_Planting,BI_Planting[PlantingName],BI_Planting[PlantingCode],"value",BI_Planting[(Corn) Est.Tips/Planting No Sum]),[Value])
2 Replies
- NickolajJessen
Solution Sage
In measure 2 you are using SUM('Default_Corn'[Tips]) as the denominator - which is 6900. Why are you confused when 6900 show up?
- cocoloco79
Helper III
Sorry for not making myself clear enough.
Deafult_Corn Tips= 6900 should be ignored if a value exist for BI_Planting[Est. Pieces/Tip = 8000
I was able to reslove this by using this formula:
Formula 1 =
(Corn) Est.Tips/Planting No Sum =DIVIDE(SUM('BI_Planting'[(Corn) Est. Cobs/ Planting]),SUM('BI_Planting'[(Corn) Tip Default])Formula 2 =(Corn) Est. Tips/ Planting = SUMX(SUMMARIZE(BI_Planting,BI_Planting[PlantingName],BI_Planting[PlantingCode],"value",BI_Planting[(Corn) Est.Tips/Planting No Sum]),[Value])