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

How to Apply External Filters on ALLEXCEPT()

Hi!

Can you please help me to understand how to apply external filters?  I am attempting to calculate the total numbers of unbilled hours on associate level [Quantity] based on certain filter criterias as per here below in 'Ärendetransaktioner_Excel' Table.  The total sum is accurate.  

 

ALLEXCEPT().PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

But then I would like to be able to filter total hours per individual and case. However, as shown here in the image here above, the same total is applied across all the rows for all the associates and cases and not distributed.  I have already verified the cardinalty between the tables and relationships between the associate names table and transaction table containing the hours.  

 

What is I am doint wrong?  Is my syntax incomplete in order to be able to apply external filter? 

Also, why do I get the total number of hours be less (32K vs 37K) when using "ALL" function eventhough the function is supposed to remove ALL filters. 

 

Your help is great appreciated.

 

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

ALL function returns all the rows in a table, or all the values in a column, ignoring any filters that might have been applied. This function is useful for clearing filters and creating calculations on all the rows in a table.

ALLEXCEPT function removes all context filters in the table except filters that have been applied to the specified columns.

Please try to use ALLSELECTED function, it removes context filters from columns and rows in the current query, while retaining all other context filters or explicit filters.

 

 

Best Regards,

Stephen Tao

 

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

1 REPLY 1
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

ALL function returns all the rows in a table, or all the values in a column, ignoring any filters that might have been applied. This function is useful for clearing filters and creating calculations on all the rows in a table.

ALLEXCEPT function removes all context filters in the table except filters that have been applied to the specified columns.

Please try to use ALLSELECTED function, it removes context filters from columns and rows in the current query, while retaining all other context filters or explicit filters.

 

 

Best Regards,

Stephen Tao

 

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.