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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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! |
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
29 | |
18 | |
15 | |
7 | |
6 |