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
hiteshniranjan
New Member

How to create total count for WIP and completed in powerBI

Hello Eveyone,

I am new to powerbi and trying to matrix with count of WIP( less than 100) and completed(eq to 100) from the following data. Please suggest.

 

hiteshniranjan_1-1661782720309.png

 

 

 

 

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @hiteshniranjan 

 

You can try the following methods.

Column:

Column A = IF([Col A%]=100,"Completed",IF([Col A%]<100,"WIP"))
Column B = IF([Col B%]=100,"Completed",IF([Col B%]<100,"WIP"))

vzhangti_0-1662020896216.png

New Table:

Table 2 = SUMMARIZE('Table','Table'[Column A])

The column names were changed to "Type" to make it easier to distinguish.

vzhangti_1-1662020989354.png

Column:

Count A = CALCULATE(COUNT('Table'[Column A]),FILTER('Table',[Column A]=EARLIER('Table 2'[Type])))
Count B = CALCULATE(COUNT('Table'[Column B]),FILTER('Table',[Column B]=EARLIER('Table 2'[Type])))

vzhangti_2-1662021098915.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-zhangti
Community Support
Community Support

Hi, @hiteshniranjan 

 

You can try the following methods.

Column:

Column A = IF([Col A%]=100,"Completed",IF([Col A%]<100,"WIP"))
Column B = IF([Col B%]=100,"Completed",IF([Col B%]<100,"WIP"))

vzhangti_0-1662020896216.png

New Table:

Table 2 = SUMMARIZE('Table','Table'[Column A])

The column names were changed to "Type" to make it easier to distinguish.

vzhangti_1-1662020989354.png

Column:

Count A = CALCULATE(COUNT('Table'[Column A]),FILTER('Table',[Column A]=EARLIER('Table 2'[Type])))
Count B = CALCULATE(COUNT('Table'[Column B]),FILTER('Table',[Column B]=EARLIER('Table 2'[Type])))

vzhangti_2-1662021098915.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

PVO3
Impactful Individual
Impactful Individual

Hi

 

You coul try something like this

Measure1 = CALCULATE(COUNTROWS(Table),Table[Col A%] = 100)

Measure 2 = CALCULATE(COUNTROWS(Table),Table[Col A%] <> 100)

Thanks POV, Post creating these Measure how can i display the Text in first col as WIP and Completed because i have no column for this , Actually i am not sure how can i add these measure to get the final output

PVO3
Impactful Individual
Impactful Individual

The easiest way is to:

- Create a table like this

PVO3_0-1661839050340.png

- Create a matix visual, with this above column as columns

- In the matrix switch values to rows

- add these measures:

 

WIP =
SWITCH(TRUE(),
    SELECTEDVALUE('Table (3)'[Column1]) = "Col A%", CALCULATE(COUNTROWS('Table'),'Table'[Col A%] <> 100),
    SELECTEDVALUE('Table (3)'[Column1]) = "Col B%", CALCULATE(COUNTROWS('Table'),'Table'[Col B%] <> 100)
)
 
Completed =
SWITCH(TRUE(),
    SELECTEDVALUE('Table (3)'[Column1]) = "Col A%", CALCULATE(COUNTROWS('Table'),'Table'[Col A%] = 100),
    SELECTEDVALUE('Table (3)'[Column1]) = "Col B%", CALCULATE(COUNTROWS('Table'),'Table'[Col B%] = 100)
)
 
But if your willing to invest in more complicated options you should dive into calculation groups.
 

 

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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