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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors