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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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