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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
prab
Microsoft Employee
Microsoft Employee

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

@prab 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

@prab have you tried CONCATENATE function. 

 

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

 

prab.png

prab
Microsoft Employee
Microsoft Employee

 

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 @prab something like this?

multicard.png

prab
Microsoft Employee
Microsoft Employee

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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