Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Merging Columns using distinct ID number

Hey

I have extracted the table below using the formular stated below, because I want to use the table as a visual;

Active Ticket Table = CALCULATETABLE(Tickets,Tickets[[email protected]]="Active")

 

As seen in the table there are duplicate data in the Value.TicketNumber, ProjectName & StatusCode, which I could have used remove duplicate data to remove. However, the RequestType column has distinct request Types. 

Value.TicketNumberProjectNameRequestTypeStatusCodeStateCode
2023-IDM-0000001Phone CaseBuilder's linenPending AssignmentActive
2023-IDM-0000002Project SpinoffW&D of ODRWAwaiting DocumentsActive
2023-IDM-0000003DRW-0128YNSCoperate SearchMergingActive
2023-IDM-0000003DRW-0128YNSEasement AccessMergingActive
2023-IDM-0000003DRW-0128YNSBuilder's linenMergingActive
2023-IDM-0000004YU-Jason ProjectEasement AccessPending AssignmentActive
2023-IDM-0000005MP-927-2023EncroachmentAwaiting DocumentsActive
2023-IDM-0000006719-YUGNT-2022Builder's linenMergingActive
2023-IDM-00000072023-Builders ProjectCity-to-City GeneralAwaiting DocumentsActive
2023-IDM-00000072023-Builders ProjectEncroachmentAwaiting DocumentsActive
2023-IDM-0000008Aspen Woods Project 2021Ground TieMergingActive
2023-IDM-0000008Aspen Woods Project 2021City-to-City GeneralMergingActive
2023-IDM-0000009Alpine GroundingBuilder's linenPending AssignmentActive
2023-IDM-0000010Brent JdrainageEncroachmentPending AssignmentActive
2023-IDM-0000011Ground Opening ProjectW&D of ODRWPending AssignmentActive
2023-IDM-0000012City-to-City DroneW&D of ODRWMergingActive
2023-IDM-0000012City-to-City DroneCoperate SearchMergingActive
2023-IDM-0000012City-to-City DroneEasement AccessMergingActive

 

Whih formula can i use to make the Active intakes table appear as seen below please either in the visual or in the table

Value.TicketNumberProjectNameRequestTypeStatusCodeStateCode
2023-IDM-0000001Phone CaseBuilder's linenPending AssignmentActive
2023-IDM-0000002Project SpinoffW&D of ODRWAwaiting DocumentsActive
2023-IDM-0000003DRW-0128YNSCoperate Search,
Easement Access,
Builder's linen
MergingActive
2023-IDM-0000004YU-Jason ProjectEasement AccessPending AssignmentActive
2023-IDM-0000005MP-927-2023EncroachmentAwaiting DocumentsActive
2023-IDM-0000006719-YUGNT-2022Builder's linenMergingActive
2023-IDM-00000072023-Builders ProjectCity-to-City General,
Encroachment
Awaiting DocumentsActive
2023-IDM-0000008Aspen Woods Project 2021Ground Tie,
City-to-City General
MergingActive
2023-IDM-0000009Alpine GroundingBuilder's linenPending AssignmentActive
2023-IDM-0000010Brent JdrainageEncroachmentPending AssignmentActive
2023-IDM-0000011Ground Opening ProjectW&D of ODRWPending AssignmentActive
2023-IDM-0000012City-to-City DroneW&D of ODRW,
Coperate Search,
Easement Access
MergingActive

 

Thank you in advance for your help

4 Replies

  • Anonymous add a measure for Request Type and then use this measure in the table visual along with other columns:

     

    Request Type = 
    CONCATENATEX ( FILTER ( 'Table', 'Table'[StateCode] = "Active" ), [RequestType], ",")
    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks but this did not work. I would expect that the formula would use the ticket number as a distinct identifier to concatenate the Request Types. Please can you provide another formula

  • Anonymous your reply didn't help? How I will know what is not working? Are you getting the wrong result or blank or error? How I expect to provide the answer without knowing what is not working?