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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Oskar
Frequent Visitor

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.