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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
prab
Employee
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

 

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

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors