Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Create a DATA Table based on another table

Hi All, 

 

I have a table like this : 

 

IDColorTextureTaste
S01YesYesYes
S02NoNoNo
S03YesYesYes
S04YesNoNeutral
S05NoNoNeutral
S06NoNoYes

 

And I would like a table like this : 

 

 YesNeutralNo
Color303
Texture204
Taste312

 

I can't find how to do that on the report neither on the data section. 

Any ideas? 

 

Thanks in advance! 

 

  • Anonymous's avatar
    Anonymous
    7 years ago

    The reason you're getting blank is because of the formula you've used for Return.

    You've used a fullstop instead of a comma in the formula.

    I've updated the formula to make it easier.

     

    Also another issue you have is that your data has results that are based on Scales table Echelle 2 column

    But you've used Echelle 1 column to try to get your results through DAX

    So results won't match because the value doesn't match your data table.

    As such I've shown this in the Scales table by doing 2 formulas. 1 based on Echelle1 and one based on Echelle2 to demonstrate

     

    https://ufile.io/tp83h

5 Replies

  • jthomson's avatar
    jthomson
    Solution Sage

    Select your ID column in Power Query and unpivot the other columns. Trivial from there to stick the relevant columns into a matrix

      • Anonymous's avatar
        Anonymous
        Not applicable

        Anonymous Hi, I'm sorry but I'm missing something. When I adapt your formula to calculate each row, I get blanck cells only. 

        Would you be kind enough to check my file and let me know what I did wrong? It would help me a lot! 

         

        https://ufile.io/orrhr