The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hey team,
This might be an odd request and so far I've been unable to get some good Google results based on the fact I'm not sure how to ask this question.
Long story short: we run NPS surveys across our business and get results from independent partners. All partners but 1 provide the NPS data in survey form, where each row is a single response and each column represents a different question.
We're trying to come up with a combined target measure for the group so I'm left with the challenge to add the remaining partner to the totals but the format is throwing me off. The format of 95% of the data is as follows:
RespID | NPS score | Date |
1 | 8 | 1/04/2021 |
2 | 8 | 1/04/2021 |
3 | 3 | 1/04/2021 |
4 | 10 | 1/04/2021 |
But the format of the 1 partner is as follows. For some horrible reason it has the scores in the first column, then the count of said scores within the date range in the 2nd column.
Now my question is: is there any way I could somehow transform the below table into a format that is similar to the first table so I can append? Ie, create an table with an index and have a row count that is equal to the sum of the 2nd column (7 in this case) with 6x10 and 1x5?
Score | 4/2021 |
10 | 6 |
9 | 0 |
8 | 0 |
7 | 0 |
6 | 0 |
5 | 1 |
4 | 0 |
3 | 0 |
2 | 0 |
1 | 0 |
0 | 0 |
@emdnz , based on what I got.
1. Unpivot, the date will be in the row you will count and another column - https://radacad.com/pivot-and-unpivot-with-power-bi
2. After that multiply [Score] *[Count] to get a total score. That is the best you can get, it will not same as the first table
you can dummy resp Id
say
resp Id =1 or add index column in this table
User | Count |
---|---|
16 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
23 | |
13 | |
13 | |
8 | |
8 |