Forum Discussion
android1
10 years agoPost Patron
COUNTROWS using If OR
Hi, How would I modify the following measure - OnTime = CALCULATE(COUNTROWS ( FILTER ( OTIF, OTIF[ShiftInTime] = OTIF[TimeFrom]*[targetperc OT]))) to also multiply by [targetperc OT] if OTI...
- 10 years ago
OnTime = CALCULATE(COUNTROWS ( FILTER ( OTIF, OTIF[ShiftInTime] = OTIF[TimeFrom]*[targetperc OT])) + COUNTROWS ( FILTER ( OTIF, OTIF[ShiftInTime] <> OTIF[TimeFrom]*[targetperc OT])) * [targetperc OT] )
Something like that?
Greg_Deckler
10 years agoCommunity Champion
OnTime = CALCULATE(COUNTROWS ( FILTER ( OTIF, OTIF[ShiftInTime] = OTIF[TimeFrom]*[targetperc OT])) + COUNTROWS ( FILTER ( OTIF, OTIF[ShiftInTime] <> OTIF[TimeFrom]*[targetperc OT])) * [targetperc OT] )
Something like that?
android1
10 years agoPost Patron
Hi,
When I try to get the percentage of your measure of Total Calls ie. OnTime % = OnTime/Total Calls
the OnTime% changes to whatever value is selected in the slicer. Any idea why this is?