Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
How can I write x=(5*2)/4 as a DAX expression?
I've been able to write much more complicated DAX but I seem to struggle with the basic mathematical functions. I haven't used much of it to be honest.
So far I have:
x=DIVIDE((5*2),4)
Solved! Go to Solution.
Hey @HamidBee ,
in general your dax code is correct and should work:
x = ( 5*2 ) / 4
The question is what do you want to archive. This code only returns a static result.
If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
Best regards
Denis
Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic
Hey @HamidBee ,
in general your dax code is correct and should work:
x = ( 5*2 ) / 4
The question is what do you want to archive. This code only returns a static result.
If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
Best regards
Denis
Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic
Just to confirm, I don't need to write it like this:
x=DIVIDE((5*2),4) [It turns out that this code does work]
It suffices to write?:
x = ( 5*2 ) / 4