Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
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
User | Count |
---|---|
25 | |
21 | |
20 | |
13 | |
12 |
User | Count |
---|---|
40 | |
28 | |
28 | |
22 | |
21 |