Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi DAX experts
I have this calculation that I want to work in a table visiual so that I can calculate before and after the slicer applied, but it only works on the total, how to change this?
I have also tried with the Window function but i could not make it work, please help:
Solved! Go to Solution.
Thank you for the help @lbendlin and @v-saisrao-msft
The sample file was very good to recreate the issue but the measue did little more than countrows()
You were right to use the date table (I didnt because I had some issues with it) and my initial formula works just fine then
With the following formula I got the result, but you could try something similar with EXCEPT() i guess
Hi @isThatAFrog,
Thank you @lbendlin, for your insights.
I have used the sample data and reproduced the issue at my end and got the below output also attached the pbix file for your reference:
Thank you.
Thank you for the help @lbendlin and @v-saisrao-msft
The sample file was very good to recreate the issue but the measue did little more than countrows()
You were right to use the date table (I didnt because I had some issues with it) and my initial formula works just fine then
With the following formula I got the result, but you could try something similar with EXCEPT() i guess
so that I can calculate before and after the slicer applied
Your slicer needs to feed from a disconnected calendar table.
And then you can use EXCEPT for a more concise filter.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 136 | |
| 102 | |
| 68 | |
| 66 | |
| 58 |