Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Oskar
Helper I
Helper I

How to compare two sums in PowerBi? Total tasks compared to tasks marked as "done" per customer?

Hi

 

I have 1 table with tasks.

Each row is one task. each row have customername, taskname, taskstatus

 

I want to know how many tasks is there per customer and how many of these tasks are marked as "done".

then in powerbi only show customers that have all their tasks done (total tasks for customer = tasks done)

 

i have done this with dax measure and it works.

but then my filter for the whole report based on relationships are not working.

it just displays things wrong.

 

so i need to figure out another way how to count the tasks for one customer. then count the tasks that are done and only show those customers that have all their tasks done.

 

 

 

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @Oskar ,

 

Is it possible to provide some dummy data and expected results?

 

Best Regards,

ShundaSteph

amitchandak
Super User
Super User

@Oskar ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Ideally these two measure should help

 

Total = countrows(Task)

 

Done = Countrows(filter(Task, Task[Status] ="Done]) )

 

All task done

 

countrows(filter(summarize(Task, Customer[Customer], "_1", [Total], "_2" , [Done]) , [_1] =[_2]) )

 

Assume customer is dimension

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors