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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
sc27
Frequent Visitor

Help removing specific values tied to a shared ID value

Hello,

 

I have a large dataset where a number of records are connected via unique IDs. I want to be able to see the associated attributes across all ID's and remove specific values.

 

To simplify it, I want to check for where an ID has more than 1 Account related to it. If it does, and that Account name is John, I do not want to include it within a separate concatenate measure.

sc27_0-1623436834371.png

 

I'd want my CONCATENATEX for Account, State and Level to give me this result

sc27_1-1623436865672.png

Is this even possible? 

6 REPLIES 6
Jihwan_Kim
Super User
Super User

Hi, @sc27 

Please check the link down below.

 

Picture2.png

 

Account Name(s) Measure =
IF (
ISFILTERED ( 'Table'[ID] ),
CONCATENATEX (
SUMMARIZE ( FILTER ( 'Table', 'Table'[Account] <> "John" ), 'Table'[Account] ),
'Table'[Account],
";"
)
)
 
 
State(s) Measure =
IF (
ISFILTERED ( 'Table'[ID] ),
CONCATENATEX (
SUMMARIZE ( FILTER ( 'Table', 'Table'[Account] <> "John" ), 'Table'[State] ),
'Table'[State],
";"
)
)
 
Level(s) Measure =
IF (
ISFILTERED ( 'Table'[ID] ),
CONCATENATEX (
SUMMARIZE ( FILTER ( 'Table', 'Table'[Account] <> "John" ), 'Table'[Level] ),
'Table'[Level],
";"
)
)
 
 
 
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


I didn't think this would matter, but in my data, the ID is in one table (its a Fact table) and the Account, State and Level are all within one other. I tried to do what you sent over but it just concatenated every single Account, paying no mind to the relationship between the ID and the correct Accounts

Hi, @sc27 

Please share your sample pbix file's link here.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Unfortunately, you won't be able to see it. Access is maintained by an AD group and the data is sourced from a database which is also internal

Anonymous
Not applicable

Thanks, but that's not exactly what I need. I have a scenario where I need the remove a specifc value and its associated column values based on a logical condition. Then, take that result and conduct a separate concatenation

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors