Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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]))))
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.
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]))))
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.
User | Count |
---|---|
94 | |
86 | |
78 | |
70 | |
63 |
User | Count |
---|---|
114 | |
101 | |
97 | |
66 | |
59 |