Forum Discussion

victormarconis's avatar
victormarconis
Frequent Visitor
3 years ago
Solved

Array getting "first name" wrong, help

Hello everyone, I have an annoying problem, I made a table and the values ​​are correct, but I want to group them by pgtocontas_id, when I do this in the matrix, some columns are like "first name" and other similar things. And when I open the item it's all replicated, if the header was wrong and the rest was right it wouldn't be a problem. Please help me, any Dax suggestions or something like that to solve this problem? Below I will send prints for better understanding.

 

 

Close:

 

 

Open:

 

  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi victormarconis ,

     

    Add the field [pgtocontas_id] to the Rows section and the newly created measure to the Values section of the matrix visualization.

    NewMeasure = SUMMARIZECOLUMNS('YourTable'[pgtocontas_id], "AggregatedValue", SUM('YourTable'[ValueColumn]))

     

    If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

     

    Best Regards,

    Neeko Tang

    If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi victormarconis ,

     

    Add the field [pgtocontas_id] to the Rows section and the newly created measure to the Values section of the matrix visualization.

    NewMeasure = SUMMARIZECOLUMNS('YourTable'[pgtocontas_id], "AggregatedValue", SUM('YourTable'[ValueColumn]))

     

    If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

     

    Best Regards,

    Neeko Tang

    If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly.