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

Calculate incomplete week data

All, 

 

I am trying to calculate the incomplete week per person. An incomplete week is when the booked hours is less than contract hours. Therefore I created a measure. 

Incomplete weeks =  if([weektotaal uren]<[Contracturen personeel],1,0)
 
Use the matrix table per week by person the above is not calculating the row and column totals, like in a pivot table in Excel
Please give me some advice. 
 
1 ACCEPTED SOLUTION
PC2790
Community Champion
Community Champion

Oh I see,

 

Try amending your measure as below:

IncompleteWeek = COUNTROWS(FILTER('YourTable',IF('YourTable'[Booked]<'YourTable'[Contract],1,0)))

This should work

View solution in original post

4 REPLIES 4
PC2790
Community Champion
Community Champion

Oh I see,

 

Try amending your measure as below:

IncompleteWeek = COUNTROWS(FILTER('YourTable',IF('YourTable'[Booked]<'YourTable'[Contract],1,0)))

This should work

Thanks a lot. This is working!

 

 

EvdMink
New Member

hi, 

Thanks for the comment. However, I don't get the drop down as shown. 

 

Thanks again. 

 

PC2790
Community Champion
Community Champion

Hi @EvdMink ,

 

If your measure is returning the the correct result however it is not behaving as expected while you use it in the visual against person, right click & check the settings as below:

 

PC2790_0-1610622332979.png

I hope this helps.

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.