Hi all
I work whit MashZone, I need show in a table the values of a excel file every day, but this file one day has 8 columns and n-rows, another day has 5 columns and n rows, another day has 12 columns and n rows and so on, the file have dynamic columns
How I can do to work with the dynamic columns in MashZone ?
Thanks
Josue
Andy Smy on
Assuming that you know the full set of expected column names, a data feed can be created to handle this, using crosstab.
I can't upload a picture quickly, but let me describe the steps:
Create a data feed with the following operators:
Then use Combine Feed operators on Vertical Iteration = Vertical Iteration to re-combine each column in turn.
Finally, use a Rename Columns operator to rename Vertical Iteration back to the name of the unique ID column in your source, or ignore it if you added it yourself in the first place.
So now if a column is not supplied one day, the values in that column will be blank in the output of the feed, but the column will always be there.
I can't help on a dynamic table in the display, perhaps someone else can help with that bit.
Andy