Forum Discussion
kangu
4 years agoRegular Visitor
Merger text in tabel
Hello I have data tabel in Power BI I need to merger (sum) text to have this: I can do it to number, but I can't to text. Please help I need this in tabel visualisation on PowerBI ...
- 4 years ago
With DAX:
As a calculated Column (my Table is called 'FTable')
VALUE = CONCATENATEX ( FILTER ( ALL ( FTable ), FTable[ID] = EARLIER ( FTable[ID] ) && FTable[Type] = EARLIER ( FTable[Type] ) ), FTable[Orig Value], ", " )As a measure:
VALUE1 = VAR _id = MAX ( FTable[ID] ) VAR _type = MAX ( FTable[Type] ) RETURN CONCATENATEX ( FILTER ( ALL ( FTable ), FTable[ID] = _id && FTable[Type] = _type ), FTable[Orig Value], ", " )I've attached the sample PBIX file
PaulDBrown
Community Champion
4 years agoWith DAX:
As a calculated Column (my Table is called 'FTable')
VALUE =
CONCATENATEX (
FILTER (
ALL ( FTable ),
FTable[ID] = EARLIER ( FTable[ID] )
&& FTable[Type] = EARLIER ( FTable[Type] )
),
FTable[Orig Value],
", "
)
As a measure:
VALUE1 =
VAR _id =
MAX ( FTable[ID] )
VAR _type =
MAX ( FTable[Type] )
RETURN
CONCATENATEX (
FILTER ( ALL ( FTable ), FTable[ID] = _id && FTable[Type] = _type ),
FTable[Orig Value],
", "
)
I've attached the sample PBIX file
- kangu4 years agoRegular Visitor
Thanks, it's working ! 🙂