cancel
Showing results for
Did you mean:

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Helper I

## My Between Slicer is Not filtering table values on its selection

Hi Friends,

1 ACCEPTED SOLUTION
Community Support

Hi @Gopal_PV ,

Can I ask you if the Net Amount in your table is calculated by dax, similar to the following.

``````_sum_price =

CALCULATE(SUM('Product'[Dealer Price])),FILTER(ALL('Product'),'Product'[Class] = MAX('Product'[Class]))))``````

The ALL function is used in this formula, which returns all values in all rows or columns of the table, ignoring any filters that may have been applied. This function can be used to clear filters and perform calculations on all rows in the table. Using the slicer at this point will not have any effect on the data in the table.

If you want to make the slicer work, you can use the ALLEXCEPT function to remove all contextual filters from the table except for those that have been applied to the specified column.

``````_sum_price_1 =

CALCULATE(SUM('Product'[Dealer Price]),FILTER(ALLEXCEPT('Product','Product'[Dealer Price]),'Product'[Class] = MAX('Product'[Class]))))``````

Row Context and Filter Context in DAX - SQLBI

Best Regards,

Clara Gong

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

Community Support

Hi @Gopal_PV ,

Can I ask you if the Net Amount in your table is calculated by dax, similar to the following.

``````_sum_price =

CALCULATE(SUM('Product'[Dealer Price])),FILTER(ALL('Product'),'Product'[Class] = MAX('Product'[Class]))))``````

The ALL function is used in this formula, which returns all values in all rows or columns of the table, ignoring any filters that may have been applied. This function can be used to clear filters and perform calculations on all rows in the table. Using the slicer at this point will not have any effect on the data in the table.

If you want to make the slicer work, you can use the ALLEXCEPT function to remove all contextual filters from the table except for those that have been applied to the specified column.

``````_sum_price_1 =

CALCULATE(SUM('Product'[Dealer Price]),FILTER(ALLEXCEPT('Product','Product'[Dealer Price]),'Product'[Class] = MAX('Product'[Class]))))``````

Row Context and Filter Context in DAX - SQLBI

Best Regards,

Clara Gong

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

Announcements

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

#### Power BI Monthly Update - May 2024

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

#### Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors