Forum Discussion

piotrgrendus87's avatar
3 years ago
Solved

ROUND function

Hi everyone.
I am looking for a way to create a " round " function that will round the result of my measure:

 

P4P Workshop Parts Sales = ('Workshop Parts Sales'[Workshop Parts] * (1 + P4P[P4P]))

I am currently getting the following result:

 

P4P Capacity = HIST_CAPACITY[History FTE] * (1 + P4P[P4P])
I am currently getting the following result:

 

Regards Piotr

 

  • Hi piotrgrendus87 

    For Reference you can use the template functions from the guide
    https://docs.microsoft.com/en-us/dax/round-function-dax

    For your measures

    P4P Workshop Parts Sales = 

    var result = ('Workshop Parts Sales'[Workshop Parts] * (1 + P4P[P4P]))


    return ROUND(result,2)

    For other measure

    P4P Capacity = 

    var result = HIST_CAPACITY[History FTE] * (1 + P4P[P4P])

    return ROUND(result,2)

    Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

1 Reply

  • Hi piotrgrendus87 

    For Reference you can use the template functions from the guide
    https://docs.microsoft.com/en-us/dax/round-function-dax

    For your measures

    P4P Workshop Parts Sales = 

    var result = ('Workshop Parts Sales'[Workshop Parts] * (1 + P4P[P4P]))


    return ROUND(result,2)

    For other measure

    P4P Capacity = 

    var result = HIST_CAPACITY[History FTE] * (1 + P4P[P4P])

    return ROUND(result,2)

    Did I answer your question? Mark my post as a solution! Kudos are also appreciated!