Forum Discussion
Adrian_rev
1 year agoNew Member
Create a column when different rows have the same value
Hello everyone, I have a table with invoices and information about it. For some of them I have a column which states the family_ID of it. Now I need that for every invoice with the same number, i...
- 1 year ago
Hello Adrian_rev
You can create a calculated column with the below DAX;RESULT =CALCULATE(MAX('table_name'[FAMILY_ID]),ALLEXCEPT('table_name','table_name'[INVOICE]))Please Let me know if this isn't meet your requirementThanks & Regards... - 1 year ago
Hello Adrian_rev ,
try this
New_Family_ID =
CALCULATE (
MAX (YourTable[FAMILY_ID]),
ALLEXCEPT (YourTable, YourTable[INVOICE])
)
Thanks,
Pankaj Namekar | LinkedInIf this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.
pankajnamekar25
1 year agoSuper User
Hello Adrian_rev ,
try this
New_Family_ID =
CALCULATE (
MAX (YourTable[FAMILY_ID]),
ALLEXCEPT (YourTable, YourTable[INVOICE])
)
Thanks,
Pankaj Namekar | LinkedIn
If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.