Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I have a table called Bugs. It has numerous attributes, such as functional area, state, impact, etc. in addition to a calculated column call [Days Open]. I also have a summary table, created as follows:
Bug Summary =
SUMMARIZE(
'Bug',
'Bug'[Created Date],
"Count", COUNT('Bug'[Days Open]),
"Average Days Open", AVERAGE('Bug'[Days Open]),
"Min Days Open", MINA('Bug'[Days Open]),
"Max Days Open", MAXA ('Bug'[Days Open])
)The report also has numerous slicers that filter the bug table by the various attributes. I would like to see the summary based not on the entire bug table, but only on the bugs that are selected by the various slicers. In other words, as I update the slicers, I would like to recalculate the summary table. How can I do this? Any help is greatly appreciated.
Solved! Go to Solution.
Hi @gaccardo,
I would like to see the summary based not on the entire bug table, but only on the bugs that are selected by the various slicers. In other words, as I update the slicers, I would like to recalculate the summary table.
No. It is not possible to achieve such a requirement. The same as calculated column, a calculated table (the summary table here) is static once it has been initilized. It won't be recalculated when you update slicer selection. Only measure can return dynamical results based on slicer.
Regards,
Yuliana Gu
Hi @gaccardo,
I would like to see the summary based not on the entire bug table, but only on the bugs that are selected by the various slicers. In other words, as I update the slicers, I would like to recalculate the summary table.
No. It is not possible to achieve such a requirement. The same as calculated column, a calculated table (the summary table here) is static once it has been initilized. It won't be recalculated when you update slicer selection. Only measure can return dynamical results based on slicer.
Regards,
Yuliana Gu
Thank you @v-yulgu-msft. I will redesign the report to avoid needing such a table.
Hi @gaccardo
You can use the FILTER .
SAy for example, you have category slicer from BUG table, and you want the sumamry table to be updated based on the user selection.
Replace the table name in your summarize function as below:
FILTER ( BUG, BUG[Category] = SELECTEDVALUE(BUG[Category] ) )
Hope this works for you.
Thanks
Raj
Thank you for your reply @Anonymous. I tried the DAX below, but it does not work properly. It shows exactly the same results regardless of the values selected in the slicer. I've also tried using ALLSELECTED('Bug'), but it, too, gives the same results. I suspect that the SUMMARIZE is running when there is no context for SELECTEDVALUE and that a much different solution is required.
Bug Summary =
SUMMARIZE(
FILTER (
'Bug',
'Bug'[State] = SELECTEDVALUE('Bug'[State] )
),
Bug[Created Date Only],
"Count", COUNT(Bug[Days Open]),
"Days Open Average", AVERAGE(Bug[Days Open]),
"Days Open Minimum", MINA(Bug[Days Open]),
"Days Open Maximum", MAXA (Bug[Days Open])
)
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 43 | |
| 39 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 63 | |
| 32 | |
| 30 | |
| 23 |