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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.