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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.