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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Qotsa
Helper V
Helper V

FIND - using more than one

Hi,

 

The below measure sums [Charged_Hrs] only when  'ClientsList'[ClientMH3Name] = "HSE Cover".

 

How do I modify this to sum [Charged_Hrs] only when  'ClientsList'[ClientMH3Name] = "HSE Cover" 

 

OR

 

'ClientsList'[USER5] = "HSE Cover"

 

 

 

Cover Hrs =
CALCULATE (
    CALCULATE (
        CALCULATE (
            SUM ( vw_ShowChargesAndPayForVisits[Charged_Hrs] ),
            FILTER ( 'ClientsList', FIND ( "HSE Cover", 'ClientsList'[User5],, 0 ) ),
            FIND ( "HSE Cover", 'ClientsList'[ClientMH3Name],, 0 )
        ),
        USERELATIONSHIP ( 'Year'[Year], vw_ShowChargesAndPayForVisits[Year] )
    ),
    USERELATIONSHIP ( 'Week'[Week], vw_ShowChargesAndPayForVisits[Weeks] )
)

1 ACCEPTED SOLUTION

Hi @Qotsa ,

 

If my above post helps, could you please consider Accept it as the solution to help the other members find it more quickly. thanks!

 

Best regards,

Dina Ye

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

3 REPLIES 3
v-diye-msft
Community Support
Community Support

Hi @Qotsa 

 

Please use the formula below instead:

Cover Hrs =
CALCULATE (
    CALCULATE (
        CALCULATE (
            SUM ( vw_ShowChargesAndPayForVisits[Charged_Hrs] ),
            FILTER (
                ClientsList,
                FIND ( "HSE Cover", 'ClientsList'[User5],, 0 )
                    || FIND ( "HSE Cover", 'ClientsList'[ClientMH3Name],, 0 )
            ),
            USERELATIONSHIP ( 'Year'[Year], vw_ShowChargesAndPayForVisits[Year] )
        ),
        USERELATIONSHIP ( 'Week'[Week], vw_ShowChargesAndPayForVisits[Weeks] )
    )
)

Best regards,

Dina Ye

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Hi @Qotsa ,

 

If my above post helps, could you please consider Accept it as the solution to help the other members find it more quickly. thanks!

 

Best regards,

Dina Ye

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Works great. TY.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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