Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I want to sum a column in Power Editor with IF condition.
Something like below:
= List.Sum(Cost) if Month = "November"
Please help Thanks
Solved! Go to Solution.
What do you want to happen if it doesn't equal your value?
Please provide some data and your desired outcome.
| Have I solved your problem? Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;). |
If the condition is false then null
Try this:
if [Month] = "November" then List.Sum({[Cost]}) else null
I assumed you're doing this by adding a custom column.
Edit: was missing some brackets.
| Have I solved your problem? Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;). |
Thank you so much
What do you want to happen if it doesn't equal your value?
Please provide some data and your desired outcome.
| Have I solved your problem? Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;). |
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.