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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Concatenate Formula Error

Hi Experts

 

Cannot see the wood for the trees.....HELP

 

HAQNo = CONCATENATE("("&CALCULATE(COUNTROWS(Case_Data),CONTAINSROW({0,1,11,12,13,14,26,28,34,36,39,43,48,49,50,52,53,54,56,57,58,62,63,69,70,71,72,73,74,75,76,77,78,79,82,84,88,89,94,121,131,132,141,144,146,147,183,186,189,204,206},Case_Data[TypeID])&")")

1 ACCEPTED SOLUTION
Stachu
Community Champion
Community Champion

you concatenate useing ampersand, there is no need for the formula itself

HAQNo =
"("
    & CALCULATE (
        COUNTROWS ( Case_Data ),
        CONTAINSROW (
            {0, 1, 11, 12, 13, 14, 
            26, 28, 34, 36, 39, 43, 
            48, 49, 50, 52, 53, 54, 
            56, 57, 58, 62, 63, 69, 
            70, 71, 72, 73, 74, 75, 
            6, 77, 78, 79, 82, 84, 
            88, 89, 94, 121, 131, 132, 
            141, 144, 146, 147, 183, 186, 
            189, 204, 206}, 
            Case_Data[TypeID]
        )
    )
    & ")"


Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

View solution in original post

2 REPLIES 2
Stachu
Community Champion
Community Champion

you concatenate useing ampersand, there is no need for the formula itself

HAQNo =
"("
    & CALCULATE (
        COUNTROWS ( Case_Data ),
        CONTAINSROW (
            {0, 1, 11, 12, 13, 14, 
            26, 28, 34, 36, 39, 43, 
            48, 49, 50, 52, 53, 54, 
            56, 57, 58, 62, 63, 69, 
            70, 71, 72, 73, 74, 75, 
            6, 77, 78, 79, 82, 84, 
            88, 89, 94, 121, 131, 132, 
            141, 144, 146, 147, 183, 186, 
            189, 204, 206}, 
            Case_Data[TypeID]
        )
    )
    & ")"


Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Anonymous
Not applicable

Arrrrr i se my error now... thanks much appreicated

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors