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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
i am learning PowerBI and Stucked with below issue.
| Table Name: Dim1 | |
| ID | Direction |
| 1 | Up |
| 2 | Down |
| 3 | Up |
| 4 | Up |
| 5 | Down |
| Fact_1 | |||
| ID | Caltegory | Sales | Budget |
| 1 | A | 2 | 2 |
| 2 | B | 3 | 1 |
| 3 | C | 4 | 2 |
| 4 | D | 3 | 3 |
| 5 | E | 5 | 4 |
I want to write somthing like this in my measure: Measure=If(Dim1[Direction]="Up"),'Fact_1'[Sales], 'Fact_1'[Budget])
Thanks,
KSR
Hi, @Anonymous , your formula works in a calculated column; as measure, the syntax is a bit different,
Measure =
IF (
MAX ( Dim1[Direction] ) = "Up",
MAX ( 'Fact_1'[Sales] ),
MAX ( 'Fact_1'[Budget] )
)
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 20 | |
| 20 | |
| 17 | |
| 14 | |
| 14 |