Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
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 |
---|---|
8 | |
8 | |
5 | |
5 | |
3 |