Forum Discussion

av9's avatar
av9
Helper III
5 years ago
Solved

Combining mutilpe dates into one field

Hi, I have a table of customer meetings, and I want to summarise this so YTD dates appear in one cell. 
I.e. from this:

CustomerMeeting SubjectDate
JohnCoffee catchup10/08/2019
JohnTeleconference01/07/2020
JohnZoom catchup10/10/2020
JamesCoffee catchup10/10/2020
JamesPresentation05/05/2020

 

To this:

CustomerMeetings YTD
John01/07/2020, 10/10/2020
James10/10/2020, 05/05/2020
  • Anonymous's avatar
    Anonymous
    5 years ago

    HELLO @av9,

    I'm not so sure how the table is added, but I think you can try using the CONCATENATEX function to control the summarized table to extract and concatenate these date field values.

    Measure =
    VAR summary = 'your summary table formula'
    RETURN
        CONCATENATEX (
            DISTINCT ( SELECTCOLUMNS ( summary, "Date", [Date] ) ),
            [Date],
            ","
        )
    

    Dax CONCATENATEX function

    Best regards

    Xiaoxin Sheng

3 Replies

    • av9's avatar
      av9
      Helper III

      The 10/10/2020 is the meeting date field.

       

      So looks like this 

       

      | Name | Meeting Subject | Date            |

      | James | Coffee catch up  | 10/10/2020 |

      | James | Presentation       | 05/05/2020 |

       

      Then Summarise so it looks like this:

       

      | Name | Date |

      | James | 05/05/2020, 10/10/2020 |

       

       

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        HELLO @av9,

        I'm not so sure how the table is added, but I think you can try using the CONCATENATEX function to control the summarized table to extract and concatenate these date field values.

        Measure =
        VAR summary = 'your summary table formula'
        RETURN
            CONCATENATEX (
                DISTINCT ( SELECTCOLUMNS ( summary, "Date", [Date] ) ),
                [Date],
                ","
            )
        

        Dax CONCATENATEX function

        Best regards

        Xiaoxin Sheng