Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

remove leading comma from measure

I used a measure to concate and comma separate 

Step 1) I created custom column   PartyName = Related(contacts(fullname)) .

step 2 ) Created measure = 

 Name = CONCATENATEX(VALUES(activityparties[PartyName]),activityparties[PartyName],", ")

It shows correct data, but I am getting an extra comma at begining of data. 
, Robert David, David Shaw, Morning Evening, Johnathon Arnold, Leslie Fejes

I tried to use Mid function, but after editing formula, visual keeps loading for some time and then shows error msg saying runs out of memory.. 

Any clue on this?? 

Kind Regards,
Ashay
3 REPLIES 3
Anonymous
Not applicable

 

Hi akshay,


You need to create calculated column for this.

 

You can also use concatenatex function for same.

Delimiter.JPG

 

 




Anonymous
Not applicable

Hi Amit, 
Thanks for your reply. 
That is not the case I am doing. 

I have 4 tables, 1) activitypointers, 2) activityparties 3)incident 4) contacts

 

My current table visual is like this 

Ticket Number(incident)Activityid (activitypointer)partyid(activityparty)contact
1axxname
1ayyname
1azzname
2bbbname
3a1x1x1nam
3a2x2x2name

 

All I am expecting it to be is

ticketnmbercontact
1xname, yname, zname
2bname
3x1name, x2name

 

But my result is like 
1   ,xname, yname, zname. 

I want to removve first comma. 

Anonymous
Not applicable

Hi Akshay,

Your formula is correct, Even, I am also getting the same result.

 

issue.JPG

 

I think, You have to clean Conatct column in Power Query Editor

=Text.TrimStart(Text.TrimStart([contact],","))

 

Then you can use this custom column in Power BI desktop to create measure.

 

Thanks,
Amit

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.