Forum Discussion

Cipriano's avatar
Cipriano
Icon for Helper III rankHelper III
3 years ago
Solved

Table scan and joining column data in a sigle value.

Hello, everyone!

To check if it is possible to read a data table to obtain a summary view of the data, I basically need to integrate data using a table scan, joining the values of one of its columns:

 

Table Orginal   
    
FechaAlumnoMateriaComentario
01/01/2023CLRAPuntualidad
01/01/2023CLRATarea
01/01/2023CLRARetraso Ejercicio
01/01/2023MRGMAPuntualidad
01/01/2023MRGMATarea
01/01/2023MRGMAEjercicio

 

Result   
FechaAlumnoMateriaComentario
01/01/2023CLRAPuntualidad, Tarea, Retraso Ejercicio
01/01/2023MRGMAPuntualidad, Tarea, Ejercicio

 

Thank you very much in advance!

  • Cipriano Yes, it is possible to group and concatenate text values using dax expression. Your final report will display the summarized view of the data with comments concatenated for each unique combination of "Fecha," "Alumno," and "Materia."

    Concatenated Comments =
    VAR GroupedData =
    SUMMARIZE(
    OrginalTable,
    OrginalTable[Fecha],
    OrginalTable[Alumno],
    OrginalTable[Materia],
    "ConcatenatedComments",
    CONCATENATEX(VALUES(OrginalTable), OrginalTable[Comentario], ", ")
    )
    RETURN
    MAXX(GroupedData, [ConcatenatedComments])




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

     

1 Reply

  • DallasBaba's avatar
    DallasBaba
    Icon for Skilled Sharer rankSkilled Sharer

    Cipriano Yes, it is possible to group and concatenate text values using dax expression. Your final report will display the summarized view of the data with comments concatenated for each unique combination of "Fecha," "Alumno," and "Materia."

    Concatenated Comments =
    VAR GroupedData =
    SUMMARIZE(
    OrginalTable,
    OrginalTable[Fecha],
    OrginalTable[Alumno],
    OrginalTable[Materia],
    "ConcatenatedComments",
    CONCATENATEX(VALUES(OrginalTable), OrginalTable[Comentario], ", ")
    )
    RETURN
    MAXX(GroupedData, [ConcatenatedComments])




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