Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Yintak
Contributor II
Contributor II

Concatenate and filter

Good day

Please help me with this question, I have a a table of status codes and invoice numbers; see example:

By using the concatenate expression, =AGGR(Concat(Distinct[Status Code], ', '), [Invoice Number])

I will get back something like this:

I then use: =AGGR(Concat(distinct If(Not Match(Status Code, 'ABC'), Status Code),' , '), [Invoice Number])

I get this:

I want to remove all invoice numbers that contain the status code "ABC", how should I go about doing this?

Am I moving in the correct direction? Thank you in advance!

Best regards

Yin Tak

14 Replies
Yintak
Contributor II
Contributor II
Author

Not sure if I am doing anything wrong, but removing AGGR() gives me an invalid dimension.

tresesco
MVP
MVP

You are probably using that expression as dimension. Try it otherwise, use [Invoice number] as dimension and the expression without aggr() as expression, then pull to exchange column positions of dimension and expression.

Yintak
Contributor II
Contributor II
Author

Sorry, but please guide me through.

I have used [Invoice Number] as dimension.


Using the expression without AGGR() as expression? I am confused by this statement.

Thank you for your time to reply me.

tresesco
MVP
MVP

PFA

Yintak
Contributor II
Contributor II
Author

Thank you Tresesco.

I have tried your following method, it still returns me with status quo.

No worries, this is the closest I can get and will work with what I have.

I really appreciate your time and effort in helping me out (: