Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I'm currently trying to convert existing excel formulas I have into PowerQuery (which i've only just started using).
A lot of it is straightforward, but i've come unstuck with nested IF statements.
My formula in excel is:
IF([@ED]=TRUE,"high financial stress",
IF(AND([@LWM1]>2,[@FC]>2,[@LWM2]>2,[@ED]=FALSE,[@R]=FALSE),"no financial stress",
IF(AND([@LWM1]=1,(OR([@FC]<3)),(OR([@LWM2]<3)),[@R]=TRUE),"high financial stress","financial stress")))
And i need to convert this to DAX for a custom column.
Any help would be hugely appreciated 🙂
Solved! Go to Solution.
@Anonymous,
You modify your formula using DAX below:
Result = IF ( [@ED] = TRUE, "high financial stress", IF ( ( [@LWM1] > 2 ) && ( [@FC] > 2 ) && ( [@LWM2] > 2 ) && ( [@ED] = FALSE ) && ( [@R] = FALSE ), "no financial stress", IF ( ( [@LWM1] = 1 ) && ( ( [@FC] < 3 ) || ( [@LWM2] < 3 ) || ( [@R] = TRUE ) ), "high financial stress", "financial stress" ) ) )
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous,
You modify your formula using DAX below:
Result = IF ( [@ED] = TRUE, "high financial stress", IF ( ( [@LWM1] > 2 ) && ( [@FC] > 2 ) && ( [@LWM2] > 2 ) && ( [@ED] = FALSE ) && ( [@R] = FALSE ), "no financial stress", IF ( ( [@LWM1] = 1 ) && ( ( [@FC] < 3 ) || ( [@LWM2] < 3 ) || ( [@R] = TRUE ) ), "high financial stress", "financial stress" ) ) )
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks so much for your help @v-yuta-msft
I don't need to use/create new formulas very often so am struggling to improve my understanding of DAX in PowerBI. Are there any particular resources that you would reccommend for this? (other than what's on PowerBI site)
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
71 | |
70 | |
43 | |
31 | |
26 |
User | Count |
---|---|
89 | |
49 | |
44 | |
38 | |
37 |