Unpivot data in Tableau Converting Rows to Columns -
i have data in tableau:
kpi_name value date ------------------------ 2 1-jan b 4 1-jan 6 2-jan b 7 2-jan , want this: b date ------------------------ 2 4 1-jan 6 7 2-jan so want convert each distinct value in column kpi_name separate row, can done in visualization part in tableau want in data preparation because want use in calculated field
any appreciated.
most tableau functionality designed consume more granular, flattened, , tidy data in form of first set. such, data prep functionality has feature unpivot column values rows. don't believe reverse of built data prep capability in same way.
not knowing end use case, potentially work around create calculated field if statement return value when record listed a, otherwise return null. although still have same number of records, should able perform many of calculations available type of data structure
alternatively, perform pivot outside of tableau.
Comments
Post a Comment