Pivot table to get number of working days

Copper Contributor

here attached excel workbook which i need to get number of machines work on a day as a pivot table.

 

table 1 is data table . table 2 is pivot table which i got with extract date field and table 3 is the format what i need.

 

output 0 means that machine not work on that relevant date. anyone can help me to get that as per the table 3 format except machine names and output "0" details. 

3 Replies

@RavinduF 

It looks like duplication of https://techcommunity.microsoft.com/t5/Excel/Excel-formula-to-get-number-of-working-days/m-p/887899#...

 

Anyway, the measure is the same

Number of machines work:=CALCULATE(COUNTROWS(Range),Range[Output MC]>0)

@Sergei Baklan 

appreciate your support. i don't have power pivot option to do this with my 2013 limited version. is there any other way to do this?

 

 

@RavinduF 

You don't need Power Pivot, it is enough that you have data model which shall be with 2013. You may add measure without Power Pivot.

 

Anyway, with formula if you add Date column manually

image.png

the formula in next column is

=COUNTIFS($A$4:$A$57,$Q6,$C4:$C57,">0")