Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Dynamically add new field to a visual

Hello,

I have the following table displayed in a column chart. The problem is that every week, there could be a new column added. Is it possible to automate the addition of the new column/s to the chart?

I have done some research and found that there is a new preview feature called Field Parameters - can this help to resolve this problem? However, i am not sure how to use it.

YearWeek numberStockReturnsDefective
20221348
202226917
202232510
202249316
202255615
202362210
202277822
202283313
202296318
2022103314
2022112717
2022123722
2022137519
2022149818
2022156716
20221671434

 

The following week, the Excel source file could have a new column. In this case, it is the "Sold" column which was added. I am trying to obtain the chart below automatically. Is this possible?

YearWeek numberStockReturnsDefectiveSold
202213482
2022269176
2022325103
2022493163
2022556157
2023622102
2022778229
2022833134
2022963187
20221033148
20221127175
20221237223
20221375196
20221498189
202215671611
2022167143412

Any help is much appreciated!

  • While it's recommended to keep metrics in separate columns, one way to solve this is by unpivoting the metrics columns so that they become a dimension. If any more columns are added, they will be included in the dimension. For it to work properly, select the year and week columns, right click and select "Unpivot other columns".

     

4 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi

     

    Yes just add the field "Sold" at the same place thane stock, return...

    • Anonymous's avatar
      Anonymous
      Not applicable

      Anonymous Hi, i think that there is a confusion. I am trying to have the chart visual be updated automatically with the new fields by just refreshing the dashboard, without the current requirement to drag and drop the new fields into the visualization.

      • PaulDBrown's avatar
        PaulDBrown
        Icon for Community Champion rankCommunity Champion

        While it's recommended to keep metrics in separate columns, one way to solve this is by unpivoting the metrics columns so that they become a dimension. If any more columns are added, they will be included in the dimension. For it to work properly, select the year and week columns, right click and select "Unpivot other columns".