Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi all,
I am trying to do something like this
if the following conditon is met
Product is ship, the year is 2016 and the color is blue then the measure should take the value sales from table1
otherwise it should take the vale sales2 from table2.
Measure = IF(and(and(product="Ships";year="2016");color="Blue");Table1[sales];table2[sales2])
It is incredible how much trouble this is giving me.
Hi @kimrhansen,
Assume the Product, Year and Color comes from the Table1, please try to create a measure like below:
Measure = IF(and(and(MAX('Table1'[Product])="Ships",MAX('Table1'[Year])="2016"),MAX('Table1'[Color])="Blue"),SUM(Table1[sales]),SUM(Table3[Sales2]))
If it doesn't meet your requirement, please share sample data about those two tables for us to analyze.
Best Regards,
Qiuyun Yu
Are these tables related?
Hi @kimrhansen
is "ships", "color" and/or "year" part of one of those tables?
And should your result be only one number or will it be used in a visual that has more categories?
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 38 | |
| 31 | |
| 27 | |
| 26 |