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

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

Reply
Gopal_PV
Helper I
Helper I

My Between Slicer is Not filtering table values on its selection

Hi Friends,

Net Amount.png

1 ACCEPTED SOLUTION
v-kaiyue-msft
Community Support
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.

vkaiyuemsft_0-1713332080793.png

 

vkaiyuemsft_1-1713332080794.png

 

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]))))

vkaiyuemsft_2-1713332111570.png

 

More information can be found at the link: ALLEXCEPT function (DAX) - DAX | Microsoft Learn

Row Context and Filter Context in DAX - SQLBI

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

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.

View solution in original post

1 REPLY 1
v-kaiyue-msft
Community Support
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.

vkaiyuemsft_0-1713332080793.png

 

vkaiyuemsft_1-1713332080794.png

 

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]))))

vkaiyuemsft_2-1713332111570.png

 

More information can be found at the link: ALLEXCEPT function (DAX) - DAX | Microsoft Learn

Row Context and Filter Context in DAX - SQLBI

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

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.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.