Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Need help on the below requirement

Hi All,

 

how to achieve the output based on the below input in power bi ?

 

 

  • This will create a summary table as a solution

    Assuming the input table name is "Input" and the output table is "Output"

    go to modeling > new table and write this code

     
    Output = SUMMARIZE(Input,Input[Base],"Sales",SUM(Input[Sales]),"Col",CONCATENATEX(Input,Input[Col],", "))

2 Replies

  • This will create a summary table as a solution

    Assuming the input table name is "Input" and the output table is "Output"

    go to modeling > new table and write this code

     
    Output = SUMMARIZE(Input,Input[Base],"Sales",SUM(Input[Sales]),"Col",CONCATENATEX(Input,Input[Col],", "))
    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you yelsherif  , it is working fine.