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
Anonymous
Not applicable

Filter only parts of a dataset

Hello I am Trying to make a report that will show employees in different business areas with the amount of Time they have been absent. I have a table that looks like this. 

 

Empl./Appl.NameDate    NumberOrg. UnitBusiness Area
Alan12/21/2020850541520Training
Alan12/22/2020850541520Training
Alan12/23/2020850541520Training
Francis7/12/20210.2350644332IT
Francis10/13/2021850644332IT
Jenn2/19/2021810013520HR
Jenn4/19/20214.710013520HR
Jenn7/20/2021850716112Quality

 

I would like to Filter on Business Area, but on my report I still need to see the total time for an employee; regardless of Business Area. For Example; If I filter for Quality, I would like to See Jenn as an employee with total time absent = 20.7 // instead of Jenn's time showing only 8.  (And I would Also see Jenn when I filter on HR also showing total absent time of 20.7). 

Link to Sample Table 

 

Thanks for the help!

1 REPLY 1
v-chenwuz-msft
Community Support
Community Support

Hi @Anonymous ,

 

Try this measure:

Total =
IF(
    ISBLANK( SELECTEDVALUE( 'Table'[Empl./Appl.Name] ) ),
    "Please select",
    CALCULATE(
        SUM( 'Table'[Number] ),
        ALLEXCEPT( 'Table', 'Table'[Empl./Appl.Name] )
    )
)

 

Result

vchenwuzmsft_0-1638410558748.png

 

I put my pbix file in the end you can refer.

 

Best Regards

Community Support Team _ chenwu zhu

 

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

 

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