Forum Discussion
rphang
5 years agoFrequent Visitor
CONCATENATE with Condition (To be used in Visuals)
Hi there, Apologies first hand if there's a similar request within the forum. I need some help & advice getting around presenting my data on a donut visual. Not sure by using Measures or addi...
- 5 years ago
Ah, for a calculated column use:
NewColumn = CONCATENATEX ( DISTINCT ( SELECTCOLUMNS ( FILTER ( 'Table X', 'Table X'[Type B] = "Sales Product" && 'Table X'[Transaction No.]=EARLIER('Table X'[Transaction No.] )), "Type A", 'Table X'[Type A] ) ), LOOKUPVALUE ( 'Type A Abbreviations'[Abbreviation], 'Type A Abbreviations'[Type A], [Type A] ), " & " )Regards
Jos_Woolley
Solution Sage
5 years agoAh, for a calculated column use:
NewColumn = CONCATENATEX (
DISTINCT (
SELECTCOLUMNS (
FILTER ( 'Table X', 'Table X'[Type B] = "Sales Product" && 'Table X'[Transaction No.]=EARLIER('Table X'[Transaction No.] )),
"Type A", 'Table X'[Type A]
)
),
LOOKUPVALUE (
'Type A Abbreviations'[Abbreviation],
'Type A Abbreviations'[Type A], [Type A]
),
" & "
)Regards
- rphang5 years agoFrequent Visitor
Jos_Woolley Perfect! This completely works. Thank you!