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

Both rounding and decimal numbers

Hi, 

 

Is it possible to show both rounding numbers and decimal numbers for the same measure/value column?
If a value is 4.0 then showing 4 and if value 3,5 then showing 3,5, so there is a combination of decimals and whole numbers in the same table/matrix.


1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Anonymous 

Select your measure or the column, Under formatting section of the ribbon, apply format #,##0.#

Fowmy_1-1597651646073.png

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube, LinkedIn

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

4 REPLIES 4
Fowmy
Super User
Super User

@Anonymous 

Select your measure or the column, Under formatting section of the ribbon, apply format #,##0.#

Fowmy_1-1597651646073.png

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube, LinkedIn

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

This is something I never got to try until today. 🙂










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
danextian
Super User
Super User

Hi @Anonymous ,

I don't think that 's currently possible.  As a workaround, you may create another measure that will render the referenced measure as text with and without decimals. Example:

MEASURE as text =
IF (
    //INT rounds down a number to the nearest integer
    //if [Measure] is equal to its integer form then return as a whole number else as a decimal
    INT ( [Measure] ) = [Measure],
    FORMAT ( [Measure], "0" ),
    FORMAT ( [Measure], "0.00" )
)

 










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
amitchandak
Super User
Super User

@Anonymous , you may have to create a measure checking that with if , but it might become text

 

Refer if this can help

https://docs.microsoft.com/en-us/power-bi/desktop-custom-format-strings

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.