Forum Discussion
How to Improve my Dax/PowerQuery by avoiding hard-coding
You may need to rethink your "what-if" UX. It is not possible to dynamically add/remove visuals in Power BI, and Small Multiples are not supported in "What-If" scenarios. Have you thought about using the filter panel instead?
Hi lbendlin ,
The user viewing the dashboard needs to be able to change the values of the what-if slicers and that should only impact the sum of 'Amount' of that specific Group_CustType_Concat. So will not be able to use the filter panel for this. Also I am not trying to add or remove visuals, just trying to multiply the value of slicer to its respective concatinated group. For example this the measure to calculate the value when user changes the value of the 'Intermediate' slicer of Group 1:
1Intermediate= Calculate(sum('Table'[amount]),'Table'[Group_CustType_Concat]=="1Intermediate") * '1Intermediate'[1Intermediate Value]
This is repeated for all unique Group_CustType_Concat and then added together using switch statement based on each custType.