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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I have a sales report and one of the columns list all our vendors. I'd like to calculate the total profit of two of the vendors, but I don't know how to enter the correct dax to pull more than one vendor from the vendor column.
I can get the result with 1 vendor, but how do I add a second one? I used this formula to get the profit sum from one of the vendors:
Thanks in advance.
Solved! Go to Solution.
The double pipe is used as an "OR" condition. Please try something like this:
Gross Profit = CALCULATE(SUM('Table'[Profit]),
FILTER( Table, 'Table'[Product Vendor] = "Vendor 1" ||
'Table'[Product Vendor] = "Vendor 2" ))
If you have multiple Vendors, you can also make use of the "IN" function.
Hope this helps.
Regards,
The double pipe is used as an "OR" condition. Please try something like this:
Gross Profit = CALCULATE(SUM('Table'[Profit]),
FILTER( Table, 'Table'[Product Vendor] = "Vendor 1" ||
'Table'[Product Vendor] = "Vendor 2" ))
If you have multiple Vendors, you can also make use of the "IN" function.
Hope this helps.
Regards,
Thank you!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.