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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
JustinDoh1
Post Prodigy
Post 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.
 
JustinDoh1_0-1671659667447.png

 

 

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?
1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super 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 )
    )
)

 

View solution in original post

1 REPLY 1
AlexisOlson
Super User
Super 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 )
    )
)

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.