Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi All,
What can I use instaead to MAX in the below measure to calculate Average based on some conditions:
Regards,
Himanshu
Solved! Go to Solution.
Hi there!
MAX is returning an error because you are closing the braket after the condition, you should close the MAX braket right after the column. It would look like this:
Hi
Your Question & Dax is not clear. However my assumption is if user selects DTH then you want to multiply with 0.1 else you want to take average.
Dax = IF ( SELECTEDVALUE(View_Dealclosing[Unit]) = "DTH",
AVERAGE(View_Dealclosing[PrimaryAdder])*0.1,
AVERAGE(View_Dealclosing[PrimaryAdder]))
Appreciate a Kudos!
If this helps and resolves the issue, please mark it as a Solution!
Regards,
N V Durga Prasad
Hi there!
MAX is returning an error because you are closing the braket after the condition, you should close the MAX braket right after the column. It would look like this:
User | Count |
---|---|
98 | |
90 | |
82 | |
73 | |
67 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
67 |