Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
HamidBee
Impactful Individual
Impactful Individual

How can I write x=(5*2)/4 as a DAX expression?

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)

1 ACCEPTED SOLUTION
selimovd
Super User
Super User

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

View solution in original post

2 REPLIES 2
selimovd
Super User
Super User

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

HamidBee
Impactful Individual
Impactful Individual

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

   

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.