Forum Discussion
How Concatenate Text by Category
- 2 years ago
gomezc73 I posted the formula in the original reply. All you should have to do is replace 'Table' with your actual table name assuming that your columns names are what you posted.
Hi, i can't open the PBI because i have a prior version installed, can you please send me an screenshot of the formula?.. i reaaly appreciatte
gomezc73 I posted the formula in the original reply. All you should have to do is replace 'Table' with your actual table name assuming that your columns names are what you posted.
- gomezc732 years agoHelper V
Amazing!!. worked perfect!!.
thank you!!
- gomezc732 years agoHelper V
Hi Greg, i have a lithe issue maybe you can help me with a variation of the measure..
The final user told me that he only explain variations greater of 6%, then i have some accounts with the explanation field in blanks..
I tried to filter only explanations not blanks, but then the sum of amounts also filter it and it is incorrect..
There is a way of modify this measure to only concatenate explanations Non blanks without filter the amounts?.
By example( see the below dada) the account I02 haven't explanation. then i need concatenate only the explanation of the accounts I01, I03, I04, but the Sum of the variations must be 10.980(considerand the amount with no explanation).
When i filter only explanations Non Blanks the amount of variations is 11.000.
Can you please help me?
Lead Account 23-Sep 22-Sep VARIATION Explanation OTHER I01 2000 1000 1000 Funds in this account are used to pay the payroll and any other payroll related items pertaining to the employees under this company OTHER I02 10980 11000 -20 OTHER I03 10000 1000 9000 Increase mainly driven by timing on the collection OTHER I04 2000 1000 1000 Payments for medical claims and other benefic - Greg_Deckler2 years agoCommunity Champion
gomezc73 Sure, you can filter the blanks in the measure:
Explanation Measure = VAR __PathText = CONCATENATEX(FILTER('Table', [Explanation] <> BLANK()), [Explanation], "|") VAR __Table = ADDCOLUMNS( GENERATESERIES(1, COUNTROWS('Table'), 1), "__Text", PATHITEM(__PathText, [Value]) ) VAR __Result = CONCATENATEX(__Table, [Value] & " " & [__Text] & UNICHAR(10) & UNICHAR(13)) RETURN __Result- gomezc732 years agoHelper V
Hi,
I tried but it still it show at the end blanks lines numbered.. See the image