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 September 15. Request your voucher.
Hi everyone!
I have 3 important columns: Document_No (the invoices), Description (article/SKU) and Value (the QTY)
How can I sum Value of every invoices that contains a specific row/article:
Thank you!
Solved! Go to Solution.
Hi @Anonymous
Please try
NewMeasure =
SUMX (
VALUES ( 'Table'[Document_No] ),
CALCULATE (
IF (
{ "3% Discount Card" } IN VALUES ( Table[Description] ),
SUM ( Table[Value] )
)
)
)
Hi @Anonymous
Please try
NewMeasure =
SUMX (
VALUES ( 'Table'[Document_No] ),
CALCULATE (
IF (
{ "3% Discount Card" } IN VALUES ( Table[Description] ),
SUM ( Table[Value] )
)
)
)
Yes, it works!
Thank you!
New Measure=IF(CONTAINSROW(VALUES(Table[Description],"3% Discount Card"),SUM(Table[Value]))
Thank you, @wdx223_Daniel but the result of this measure is the total of value. The if condition works like: if in one month there is "3% Discout Card" then sum of all Value, if not, blank.
I need to sum only the Document_NO that has "3% Discount Card".
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
20 | |
12 | |
10 | |
7 |