Forum Discussion
Creating a new table by using data from pre-existing tables
Hi All,
an overview on what i need, i have multiple tables of various surveys. In my report, i have used 'union' to get the unique number of resposnes and other bits of information i need, however i am stuck as when i try to add a slicer to only filter one specific report, the slicer only has the one survey type on it. I belive creating a table with all the survey types and survey ID's will help solve this issue (if there is another way using DAX, i am all for hearing it out aswell)
Example. (please note, tables in my report are different sheets, for ease of the example, i have them written on the same sheet.
| Table 1 | Table 2 | Table 3 | |||||
| Survey | Survey ID | Survey | Survey ID | Survey | Survey ID | ||
| 1 | 1 | 2 | 10 | 3 | 19 | ||
| 1 | 2 | 2 | 11 | 3 | 20 | ||
| 1 | 3 | 2 | 12 | 3 | 21 | ||
| 1 | 4 | 2 | 13 | 3 | 22 | ||
| 1 | 5 | 2 | 14 | 3 | 23 | ||
| 1 | 6 | 2 | 15 | 3 | 24 | ||
| 1 | 7 | 2 | 16 | 3 | 25 | ||
| 1 | 8 | 2 | 17 | 3 | 26 | ||
| 1 | 9 | 2 | 18 | 3 | 27 |
I would like a table were all the ID's are together, so when i add a slicer for the report type, the visuals show me the speciific types of surveys i want to look at. I cannot append these tables in power query as the survey scores are different and will add many null values in the data.
I would the final table to look like this:
| New Table | |
| Survey | Survey ID |
| 1 | 1 |
| 1 | 2 |
| 1 | 3 |
| 1 | 4 |
| 1 | 5 |
| 1 | 6 |
| 1 | 7 |
| 1 | 8 |
| 1 | 9 |
| 2 | 10 |
| 2 | 11 |
| 2 | 12 |
| 2 | 13 |
| 2 | 14 |
| 2 | 15 |
| 2 | 16 |
| 2 | 17 |
| 2 | 18 |
| 3 | 19 |
| 3 | 20 |
| 3 | 21 |
| 3 | 22 |
| 3 | 23 |
| 3 | 24 |
| 3 | 25 |
| 3 | 26 |
| 3 | 27 |
Thank you for your help.