Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
User | Count |
---|---|
86 | |
82 | |
68 | |
66 | |
55 |
User | Count |
---|---|
123 | |
100 | |
90 | |
83 | |
66 |