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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
WilliamAzevedo
Advocate I
Advocate I

Round down data label value in area chart visual

Hello, everyone.

 

I'm setting a area chart visual and I need it to show decimals in the data label rounded down. See below:

 

Visual with decimals

WilliamAzevedo_0-1709033568607.png

 

Here, visual with decimals set to 0:

WilliamAzevedo_1-1709033872217.png

 

As i said, in the chart area visual it shows the value rounded up, i would like it to be rounded down. Is it possible?

 

Thank you in advance!

 

 

2 ACCEPTED SOLUTIONS
PijushRoy
Super User
Super User

Hi @WilliamAzevedo 

Please use TRUNC or INT function for ROUND in line chart
Details - https://learn.microsoft.com/en-us/dax/int-function-dax

 


Let me know if that works for you


If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the Thumbs Up 👍 button if this comment helps you.

Thanks
Pijush
Linkedin

View solution in original post

But based on the idea you gave, I set a measure to apply the TRUNC function to the SUM function in the rows an it worked as I expected:

Rounding = TRUNC(SUM(Table[Column to be rounded]))

WilliamAzevedo_1-1709038110036.png

 

Thank you for the help and the input!

 

View solution in original post

5 REPLIES 5
PijushRoy
Super User
Super User

Hi @WilliamAzevedo 

Please use TRUNC or INT function for ROUND in line chart
Details - https://learn.microsoft.com/en-us/dax/int-function-dax

 


Let me know if that works for you


If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the Thumbs Up 👍 button if this comment helps you.

Thanks
Pijush
Linkedin

Hi!

 

I'm sorry if it's too obvious, but, where should I use it?

Hi @WilliamAzevedo 

Create a calculated column

PijushRoy_0-1709036213649.png

 

Let me know if that works for you


If your requirement is solved, please mark THIS ANSWER as SOLUTION

But based on the idea you gave, I set a measure to apply the TRUNC function to the SUM function in the rows an it worked as I expected:

Rounding = TRUNC(SUM(Table[Column to be rounded]))

WilliamAzevedo_1-1709038110036.png

 

Thank you for the help and the input!

 

It dindn't. Since the rounding was applied to each value, it affected my final results:

WilliamAzevedo_0-1709037555653.png

 

I would like it to be applied only in the value label.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.