Forum Discussion
JustinDoh1
3 years agoPost Prodigy
How to apply filter here
I have this measure (that I am trying to add more filter):
Skill Mix % Total =
Divide(
sum(Table[Average1])
,
sum(Table[Ave Census])
)
I am trying to add another filter because I need to bring only certain location (FacilityCode = 850) out of all.
I tried this way, but it comes with this error "Too many arguments were passed tot he DIVIDE function. The maximum argument count for the function is 3".
Skill Mix % Total 850=
Divide(
(sum(
Table[Average1]
),
filter(Table, Table[FacilityCode] = 850)
),
(sum(
Table[Ave Census]
),
filter(Table, Table[FacilityCode] = 850)
)
)
How do I add a filter in this case?
Did you forget to include CALCULATE?
Skill Mix % Total 850 = DIVIDE ( CALCULATE ( SUM ( Table[Average1] ), FILTER ( Table, Table[FacilityCode] = 850 ) ), CALCULATE ( SUM ( Table[Ave Census] ), FILTER ( Table, Table[FacilityCode] = 850 ) ) )
1 Reply
- AlexisOlsonSuper User
Did you forget to include CALCULATE?
Skill Mix % Total 850 = DIVIDE ( CALCULATE ( SUM ( Table[Average1] ), FILTER ( Table, Table[FacilityCode] = 850 ) ), CALCULATE ( SUM ( Table[Ave Census] ), FILTER ( Table, Table[FacilityCode] = 850 ) ) )