Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
dear all,
I created a separate table to calculate the number each item in a column is returning. This calculation is not taken into account the dynamical filters I use in the report. How can I implement the filters assigned by slicers towards this new table?
Ex of the code of the table below
main idea:
the values which occur multiple times should be checked, but this depends on statuses of the object, type of use, ... --> I 'd like to have this calculation dynamically based on the assigned filters in PowerBI
Example of the report:
To implement dynamic filtering in your Power BI report so that the calculations in your table are affected by slicers and other filters, you can use DAX functions such as CALCULATE and ALL to manipulate the filter context. Here's how you can modify your DAX expression to incorporate dynamic filtering:
IdenticalValuesTableBIS =
ADDCOLUMNS (
SUMMARIZE (
FILTER (
ALLSELECTED(Q_SLTL_Items),
Q_SLTL_Items[Technisch object] <> BLANK()
),
Q_SLTL_Items[Technisch object],
"IdenticalCount", CALCULATE(COUNTROWS(Q_SLTL_Items))
),
"FilteredCount", CALCULATE(COUNTROWS(Q_SLTL_Items))
)
In the above expression:
By using CALCULATE with COUNTROWS and ALLSELECTED, you are able to dynamically calculate the count of rows based on the filters applied in your report, including slicers and other filter elements.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
In case there is still a problem, please feel free and explain your issue in detail, It will be my pleasure to assist you in any way I can.
dear 123abc,
the solution did not work:
in the table report, I created a 'tris' table to add the new function. The solution is not taken into account the filtered rows in the table based on the slicers.
thanks for your help
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
12 | |
11 | |
8 | |
7 | |
7 |
User | Count |
---|---|
20 | |
14 | |
11 | |
10 | |
10 |