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
Danielecc
Helper II
Helper II

how to identify differences in a group of rows vs other group of rows

Hello everyone,

 

Each group of "family" always has only one "Supplier" that we must identify because all the other "member" of that "Family" must be equal to the "Supplier" (same number of rows and same values) in the Columns "Item", "Data" and "Value".

 

Tabla.PNG

 

The result expected is only one of this (not include the "explanation why here"):

Resultado.PNG

 

The table data in text mode is:

 

FAMILYMemberTitleItemDataValue
Family1Father_XSupplierCountryChile10
Family1Father_XSupplierAddressLos Duraznos St.101
Family1DaughterX1Not_SupplierCountryChile10
Family1DaughterX1Not_SupplierAddressLos Duraznos St.101
Family1DaughterX2Not_SupplierCountryChile10
Family1DaughterX2Not_SupplierAddressLos Duraznos St.101
Family2Father_YSupplierCountryEEUU10
Family2Father_YSupplierEntryAmount$3.500
Family2Father_YSupplierAddressCalifornia St.240
Family2Father_YSupplierOtherNumber3
Family2Wife_YNot_SupplierCountryEEUU10
Family2Wife_YNot_SupplierEntryAmount$3.500
Family2Wife_YNot_SupplierAddressCalifornia St.240
Family2Son_YNot_SupplierCountryEEUU10
Family2Son_YNot_SupplierEntryAmount$3.500
Family2Son_YNot_SupplierAddressCalifornia St.240
Family2Son_YNot_SupplierOtherNumber3
Family2Son_YNot_SupplierJobYESEngineer
Family3Mother_ZSupplierCountrykorea10
Family3Mother_ZSupplierEntryAmount$3.000
Family3Mother_ZSupplierAddressHingYoo St628
Family3DaughterZNot_SupplierCountryChina10
Family3DaughterZNot_SupplierEntryAmount$3.000
Family3DaughterZNot_SupplierAddressHingYoo St400

 

Thanks a lot for your help...best regards.

 

4 REPLIES 4
smpa01
Super User
Super User

@Danielecc  what is the desired output for this dataset?

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Hi @smpa01  thanks for see the post.

 

My desired output is a new table with one of this options:

 

Resultado.PNG

 

One of that two options is ok, but is better the advanced option 🙂  

 

Thanks again and best regards.

amitchandak
Super User
Super User

@Danielecc ,

New column =

var _1 = countx(filter(Table,[FAMILY] = earlier([FAMILY])  &&  [Title] = "Supplier" ), [Title] )+0

return

if(_1>0, "Supplier", [Title] )

Hi @amitchandak , first of all thanks a lot for your answer.

 

The result of that DAX was:

Amitchandak.PNG

 

Best Regards...

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.