The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi everybody,
I have the following problem that i can't solve by myself.
DocumentNumber | Item Family | Contains Family1 or Not |
INVOICE1 | Family1 | Yes |
INVOICE1 | Family2 | Yes |
INVOICE2 | Family1 | Yes |
INVOICE3 | Family2 | No |
For a same document number, i have multiple lines. Each lines correspond to an item.
If my item is from the family Family1, if would like to tag in the third column "Yes" for all lines which have the same document number.
Could anyone help me please ?
Solved! Go to Solution.
Hi @guil-laume
Please try
Contains Family1 or Not =
IF (
"Family1"
IN CALCULATETABLE (
VALUES ( TableName[Contains Family1 or Not] ),
ALLEXCEPT ( TableName, TableName[ocumentNumber] )
),
"Yes",
"No"
)
Hi @guil-laume
Please try
Contains Family1 or Not =
IF (
"Family1"
IN CALCULATETABLE (
VALUES ( TableName[Contains Family1 or Not] ),
ALLEXCEPT ( TableName, TableName[ocumentNumber] )
),
"Yes",
"No"
)
User | Count |
---|---|
11 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
22 | |
14 | |
14 | |
9 | |
7 |