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
Mimi_Ibrahim
Helper I
Helper I

Unable to show Measure Total from Slicer

Hello experts,

 

I have below 2 tables, MasterData and EmployeeData and at the bottom 3 I have the expected results. I managed to filter the data accordingly by lookup the Monthly Details from MasterData using below column.

 

Monthly Hours =
    LOOKUPVALUE(
        MasterData[Monthly Hours],
MasterData[UID], EmployeeData[UID],  //Country&Team&Year
        MasterData[Start Year].[Year], EmployeeData[Date].[Year],     MasterData[End Year].[Year], EmployeeData[Date].[Year]
    )

However I couldn't get the total displayed in card and also in the table. The total need to be filtered by Team and MonthYear. Can you help me  please? Thank you.

 

MasterData

CountryTeamMonthly HoursStart YearEnd Year
MYTeam A148.0001/01/202231/12/2022
THTeam A147.5001/01/202231/12/2022
SGTeam A146.5001/01/202231/12/2022
MYTeam B148.0001/01/202231/12/2022
UKTeam B145.0001/01/202231/12/2022
MYTeam A146.0001/01/202331/12/2023
THTeam A145.0001/01/202331/12/2023
SGTeam A144.0001/01/202331/12/2023
UKTeam B145.0001/01/202331/12/2023
MYTeam B146.0001/01/202331/12/2023

 

EmployeeData

CountryTeamEmployeeMonthly HoursJoinedExit
MYTeam ASiti148.0001/01/200031/12/2022
THTeam AKunthai147.5001/01/2000 
SGTeam ARichard146.5001/01/2000 
MYTeam BAbu148.0001/01/200031/05/2022
UKTeam BSteve145.0001/06/2022 
UKTeam BSarah145.0020/06/2022 

 

EXPECTED RESULT - Filter by May 2022

 

CountryTeamEmployeeMonthly HoursJoinedExitTotal
MYTeam ASiti148.0001/01/200031/12/2022442.00
THTeam AKunthai147.5001/01/2000 
SGTeam ARichard146.5001/01/2000 

 

Filter by June 2022

CountryTeamEmployeeMonthly HoursJoinedExitTotal
MYTeam ASiti148.0001/01/200031/12/2022442.00
THTeam AKunthai147.5001/01/2000 
SGTeam ARichard146.5001/01/2000 
UKTeam BSteve145.0001/06/2022 290.00
UKTeam BSarah145.0020/06/2022 

 

Filter by Jan 2023

CountryTeamEmployeeMonthly HoursJoinedExitTotal
THTeam AKunthai147.5001/01/2000 294.00
SGTeam ARichard146.5001/01/2000 
UKTeam BSteve145.0001/06/2022 290.00
UKTeam BSarah145.0020/06/2022 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Mimi_Ibrahim 

 

For your question about not being able to calculate the total, please try the following:

 

Create a measure. Group by the fields you need and sum. Such as:

 

 

Measure = 
    CALCULATE(
        SUM(EmployeeData[Monthly Hours]), 
        FILTER(
            ALL('EmployeeData'), 
            'EmployeeData'[Team] = MAX('EmployeeData'[Team])
        )
    )

 

 

Here is the result.

 

vnuocmsft_0-1706064885372.png

 

Regards,

Nono Chen

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

2 REPLIES 2
Anonymous
Not applicable

Hi @Mimi_Ibrahim 

 

For your question about not being able to calculate the total, please try the following:

 

Create a measure. Group by the fields you need and sum. Such as:

 

 

Measure = 
    CALCULATE(
        SUM(EmployeeData[Monthly Hours]), 
        FILTER(
            ALL('EmployeeData'), 
            'EmployeeData'[Team] = MAX('EmployeeData'[Team])
        )
    )

 

 

Here is the result.

 

vnuocmsft_0-1706064885372.png

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

Many thanks!

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.