Forum Discussion
sumx with multiple criteria
- Anonymous2 years ago
Hi Alxnder ,
Thanks for the reply from HotChilli .
There are some problems with your syntax. You should use || instead of &&, because Grade cannot be FDM, FEJ, and FJH at the same time.
Try this:
Fancy total = SUMX( FILTER('PackoutDetails', 'PackoutDetails'[Grade] = "FDM" || 'PackoutDetails'[Grade] = "FEJ" || 'PackoutDetails'[Grade] = "FJH" ), 'PackoutDetails'[Quantity] )The final page visual effect is as follows:
I would be grateful if you could provide me with the pbix file or sample data.
Remember to remove sensitive data and do not log in to your account in Power BI Desktop when uploading the pbix file.
If you have any other questions please feel free to contact me.
The pbix file is attached.
Best Regards,
Yang
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!