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
Anonymous
Not applicable

Need Help Round Down Number

Hi,

 

I had a number got from SQL, and I'd like to round down it. In Excel is pretty easy. I'll show an example:

 

A1=830 = ROUNDDOWN(A1/100;0) =8

A2=1020 = ROUNDDOWN(A2/100;0)=10

 

I need it in the new measure, or "M languege" because I'll use it in order to plot a graph.

 

Thanks,

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

It's this one in M.

Number.RoundDown([Column1] / 100)

And this one in DAX.

Column = ROUNDDOWN([Column1]/ 100, 0)

Please refer to the snapshot below.

need-help-round-down-number

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
HotChilli
Super User
Super User

Number.RoundDown(value) ,if you want to go to the integer lower than your number

Anonymous
Not applicable

 

 

I've tried it but didn't work.

Hi @Anonymous,

 

It's this one in M.

Number.RoundDown([Column1] / 100)

And this one in DAX.

Column = ROUNDDOWN([Column1]/ 100, 0)

Please refer to the snapshot below.

need-help-round-down-number

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.