Forum Discussion
Create a new table pivot from calculated columns
- Anonymous9 years ago
Hi Summitreached,
If this is a case, you can try to add a distinct function outside of your formula, this function also works on table.
NewTable= DISTINCT( UNION ( SUMMARIZE( OldTableName, OldTableName[Resource], "Month", "Jan", "Value", OldTableName[Jan] ), SUMMARIZE( OldTableName, OldTableName[Resource], "Month", "Feb", "Value", OldTableName[Feb] ), etc... )Regards,
Xiaoxin Sheng
- 9 years ago
Hi Xiaoxin,
That worked perfectly!
Many thanks again,
Killian
Hi Summitreached,
You can try to use unpivot table function and remove duplicate function to convert these records.
Steps:
1. Click on edit queries button to enter query editor.
2. Select month columns and click on unpivot table.
3. All select table and click on remove duplicate button.
Regards,
Xiaoxin Sheng
Hi Xiaoxin,
Thank you for the quick response. Unfortunately calculated columns do not appear in the Query editor.
Regards,
Killian
- Anonymous9 years agoNot applicable
Hi Summitreached,
Can you share the sample data to analysis and write the formula?
Regards,
Xiaoxin Sheng
- Summitreached9 years agoFrequent Visitor
Hi Xiaoxin,
All the information is given above.
Thanks again,
Killian
- Anonymous9 years agoNot applicable
Hi Summitreached,
If this is a case, you can try to add a distinct function outside of your formula, this function also works on table.
NewTable= DISTINCT( UNION ( SUMMARIZE( OldTableName, OldTableName[Resource], "Month", "Jan", "Value", OldTableName[Jan] ), SUMMARIZE( OldTableName, OldTableName[Resource], "Month", "Feb", "Value", OldTableName[Feb] ), etc... )Regards,
Xiaoxin Sheng