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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.