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

Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.

Reply
Anonymous
Not applicable

Concatnate a Measure and Column

Hi, 

I have a requirement to show the title of a multi row card (highligthed in the snip) as combination of a Text, column and a Measure. 

I am able to get the values correctly for each individual item but if the text, column value and the measure value are concatnated using "&", the value of measure is blank.

 

Measure Details:

TotalSuccess = CALCULATE(SUM(PageAttempts[Attempts]),FILTER(PageAttempts,PageAttempts[Success/failed]="Success"),ALLSELECTED(PageAttempts[Date]))
#Total = sumx(ALLEXCEPT(PageAttempts,PageAttempts[Stepname],PageAttempts[Steps],PageAttempts[Success/failed],PageAttempts[Column2],PageAttempts[Date]),[Total])
%dist = CALCULATE(DIVIDE([TotalSuccess],Sumx(ALL(PageAttempts[Steps],PageAttempts[Stepname],PageAttempts[Success/failed],PageAttempts[Column2]),[#Total])))
Step+Stepname = PageAttempts[Steps] & " " & PageAttempts[Stepname] & " "
 
Show = PageAttempts[Step+Stepname] & ": " & [TotalSuccess] & " / " & [Total]
Show measure is not working as the output has incorrect value of TotalSuccess & #Total measures.
 
Show (marked in Red) is not workingShow (marked in Red) is not working
 
StepsStepnameAttemptsSuccess/failedCountryDate
Step0Initialstep1SuccessUS11/1/2019 0:00
Step1Step1Completed1SuccessUS11/1/2019 0:00
Step0Initialstep1SuccessUS11/2/2019 0:00
Step1Step1inComplete1FailedUS11/2/2019 0:00
Step0Initialstep1SuccessUS11/3/2019 0:00
Step2step2Completed1SuccessUS11/3/2019 0:00
Step0Initialstep1SuccessUS11/4/2019 0:00
Step2Step2Error1ErrorUS11/4/2019 0:00
Step0Initialstep1SuccessUS11/5/2019 0:00
Step2Step2incomplete1FailedUS11/5/2019 0:00
Step0Initialstep1SuccessIN11/10/2019 0:00
Step1Step1Completed1SuccessIN11/10/2019 0:00
Step0Initialstep1SuccessIN11/11/2019 0:00
Step1Step1Completed1SuccessIN11/11/2019 0:00
Step0Initialstep1SuccessIN11/12/2019 0:00
Step2step2Completed1SuccessIN11/12/2019 0:00

Table:1 Sample data

 

Need your help to fix this issue.

Let me know if any additional infomation is required.

 

Thanks in advance,

 

Regards,

Prabir

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous have you tried CONCATENATE function. 

 

Measure = CONCATENATE(MAX(PageAttempts[Column]),CONCATENATE(": ",CONCATENATE([TotalSuccess],CONCATENATE("/",[Total]))))

 

prab.png

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

@Anonymous have you tried CONCATENATE function. 

 

Measure = CONCATENATE(MAX(PageAttempts[Column]),CONCATENATE(": ",CONCATENATE([TotalSuccess],CONCATENATE("/",[Total]))))

 

prab.png

Anonymous
Not applicable

 

Thank You Vimal for helping out here. 

However the measure work perfectly in table but when it is added to a Multi Row Card visual, it does not group based on "Steps" column rather it just gives the total.

 
Measure = CONCATENATE(MAX(PageAttempts[Step+Stepname]),CONCATENATE(": ",CONCATENATE([TotalSuccess],CONCATENATE("/",[#Total]))))

card marked in red use the new Measurecard marked in red use the new Measure

Anonymous
Not applicable

Hi @Anonymous something like this?

multicard.png

Anonymous
Not applicable

Thank You @Anonymous. Yes this works..

 

However I was trying to have the concatnate measure as title of the card and %age value as Card data.

 

so added multiple cards with Steps as filter for each card. something like this..

 

 

image.png

Thank you very much for providing the solution of the measure that helped a lot.

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Kudoed Authors