Forum Discussion
Convert if statement to value
- 4 years ago
Hi Anonymous ,
Please try the following formula:
2G_5RDC-TA = SUMX ( SUMMARIZE ( Load_data_merged, Load_data_merged[Load number], "result", IF ( "5RDC" IN VALUES ( Load_data_merged[Sufix_template.FDP] ), IF ( "TA" IN VALUES ( Load_data_merged[Sufix_template.FDP] ), 1, "" ) ) ), [result] )If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
If you are referring to the total column the problem is not actually with aggregation. Total row uses the same logic as the column it counts the total from so in this case your total row tests what this dax returns:
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
- Anonymous4 years agoNot applicable
Thank you ValtteriN,
Unfortunately this workaround does not helped me.
Yes, you are right. I am referncing to total. In your solution is refrence to loadnumber. Hovewer this field is never empty.