Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi All,
I'm trying to write a DAX measure like below and getting error.
Any help on this?
Scenario : If SE_COUNT = 1 then I want it to do sum(SE_ACV) otherwise is SE_Count = 0 then sum(PRODUCT_ACV)
Should I use SWITCH function instead of IF?
Regards
Solved! Go to Solution.
Hello @Anonymous ,
The error you're getting is because of misplacing of parenthesis. You must close the parenthesis after stating the column in the MAX function, not after the " = 1" part.
Product_ACV_SE =
IF(
MAX(VW_F_SE_ATTRIBUTION[SE_COUNT]) = 1,
SUM(VW_F_SE_ATTRIBUTION[SE_ACV]),
SUM(VW_F_SE_ATTRIBUTION[PRODUCT_ACV])
)
Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution ✔️ or giving it a kudo 👍
Thanks!
You can also check out my LinkedIn!
Best regards,
Jorge Pessoa
Hello @Anonymous ,
The error you're getting is because of misplacing of parenthesis. You must close the parenthesis after stating the column in the MAX function, not after the " = 1" part.
Product_ACV_SE =
IF(
MAX(VW_F_SE_ATTRIBUTION[SE_COUNT]) = 1,
SUM(VW_F_SE_ATTRIBUTION[SE_ACV]),
SUM(VW_F_SE_ATTRIBUTION[PRODUCT_ACV])
)
Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution ✔️ or giving it a kudo 👍
Thanks!
You can also check out my LinkedIn!
Best regards,
Jorge Pessoa
Yes my bad, got the desired result.
Regards
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 56 | |
| 39 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 73 | |
| 70 | |
| 37 | |
| 35 | |
| 26 |