Forum Discussion

gpaltao's avatar
gpaltao
Frequent Visitor
5 years ago
Solved

Dynamically adding and removing columns on a table visual

Our organization have plans of transitioning certain reports from Spotfire to PowerBI but we are encountering some difficulties in replicating some functionalites we have in Spotfire, particularly dynamic addition and removal of columns in a table visual. In spotfire through the combination of html, javascript and ironpython, users are able to freely choose the category and value column they want and the table automatically readjusts the data based on the categories and values selected (autosums and autogroups data based on whichever categories are selected). But i am unable to do this in PowerBI.

 

I have tried to search and most of what I found entails unpivoting the data which is not practical for us as the dataset is too big (both columns and rows). The closest thing I found is from this https://community.powerbi.com/t5/Community-Blog/Dynamic-Hideable-Columns-in-Power-BI-Table-Visual/ba-p/662808. But the issue with the said solution is that certain columns that serves as primary keys needs to be always selected in the visual in order to get accurate values and because of this auto adjustment of data when other categories are selected is not working. Column headers are an issue too as there is no simple way to have them in sync with column data.

 

Is what we are requiring possible in PowerBI?

 

  • Hi gpaltao ,

     

    Believe that the option you need is to allow users to personalize visuals in a report:

    https://docs.microsoft.com/en-us/power-bi/create-reports/power-bi-personalize-visuals

     

    With this option active you can have user make changes on the visualization of:

    • Change the visualization type
    • Swap out a measure or dimension
    • Add or remove a legend
    • Compare two or more measures
    • Change aggregations, etc.

     

    This can be active at a single visualization level, at a page level or at a full report level.

6 Replies