Forum Discussion
steven_osman
8 years agoRegular Visitor
show multiple columns as rows with dynamic columns based on values
Hello,
I have a table of values as shown below :
| A | B | C | D | E |
| xx | 1 | 0.5 | 0.3 | 0.2 |
| xx | 2 | 0.6 | 0.1 | 0.3 |
| yy | 1 | 0.8 | 0.2 | 0 |
| yy | 2 | 0.4 | 0.4 | 0.2 |
| yy | 3 | 0.2 | 0.2 | 0.6 |
I need a report in power bi, for each set of column A, B as columns and C,D,E as rows. For example, For xx, the table should be :
| 1 | 2 | 3 | |
| C | 0.5 | 0.6 | |
| D | 0.3 | 0.1 | |
| E | 0.2 | 0.3 |
and for yy the table would be:
| 1 | 2 | 3 | |
| C | 0.8 | 0.4 | 0.2 |
| D | 0.4 | 0.4 | 0.2 |
| E | 0.2 | 0.2 | 0.6 |
Thanks in advance for your help.
Regards,
Steven
Hi,
You need to unpivot you table first. Look at the snapshot for the steps.
I have attached sample for you to achive the required result.
1 Reply
- erikajain02Resolver I
Hi,
You need to unpivot you table first. Look at the snapshot for the steps.
I have attached sample for you to achive the required result.