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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.