Forum Discussion

victor_erathos's avatar
victor_erathos
Frequent Visitor
4 years ago
Solved

Dynamic text column switch for aggregation

I want to dynamically switch a column in a table and display the sum (or any aggregation) of values for the column which is selected.   I've looked at several solutions that don't work for my case,...
  • victor_erathos's avatar
    victor_erathos
    4 years ago

    Thank you, v-kkf-msft !

    I ran into a few more issues, since my original data had NULL values in the dimension tables, as well. Anyway, got through those and ended up bringing that aditional table directly with SQL.

     

    However, the solution unfortunately introduces some other issues, given that we would be using an inactive relationship on this new table with distinct values. This means that, if I want to build an interactive report with the visuals filtering each other, I can't just click on a value of this table we are building to filter the other visuals, since, e.g. Dim1[type] is not related to the values in the table directly. This is an integral part of my problem; I am actually using scatter plots and not a table (which, for the purpose of the problem, it's all the same, that's why I kept it simple) and the user needs to be able to filter the report based on the data points in the visual.

     

    Your solution does solve the problem I layed out on the post, so if you do not have any other suggestions with regard to the issues I mentioned, I'll close the thread.