Forum Discussion
Creating a dynamic summarized table or calculated table
- 9 years ago
Here is the link to the file: https://1drv.ms/u/s!Av_aAl3fXRbehap3IIpK9lEWhPkdwA
When you change the slicer-selections, the Table1 will change it's columns accordingly - after you've hit refresh!
When you apply it to your model, you might find that it doesn't work at the first go. Don't know why that is, but the solution is to close the file and re-open it. At least, this worked for me :-)
Edit: Changed link to the file: The measure that harvests the slicer-selection must be used in the report somewhere.
Hi Anonymous,
I have no idea if this is possible in DAX, as a slicer-selection returns a text which you would then have to pass "as a variable" to a DAX-expression.
This is possible in M (see the general concept here: http://www.thebiccountant.com/2017/03/22/use-slicers-for-query-parameters-in-powerbi/ ) but as GilbertQ already mentioned, that would mean that you have to hit the refresh manually after the slicer-selection has been changed. If that's OK for you & you need help in implementing it for your usecase, just let me know.
Cheers, Imke
Hi ImkeF
Please show me any example pbix to acheive this.
Hi GilbertQ
If this is doable in DAX how to go about it.
Cheers
CheenuSing
- ImkeF9 years agoCommunity Champion
Will do tomorrow if no DAX-solution shows up until then :-)
- GilbertQ9 years agoSuper User
Hi Anonymous
We would need a working example to understand what you are trying to achieve.
I would imagine that the data would be loaded into a summarized table using the new table functionality, and then I would use DAX to create dynamic measures based off that table. I have done something similar in the past for a bit of a complex maths calculation. Unfortunately I cannot share that information. But it was so that I could have a line going across the data, and if they selected more or less years, the line would then change to reflect this.- Anonymous9 years agoNot applicable
Hi GilbertQ
I want to build the reduced dynamic data set using summarise function . I know about creating measures dynamically. I am interested in the reduced dynamic data set based on filters selected.
Cheers
CheenuSing
- GilbertQ9 years agoSuper UserOk thanks I think that you will have to see what Imke can come up with her amazing skills. I can only think that once you have loaded the data you cannot filter it in terms of reducing the size without having to reload the data.