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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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. 🙂





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"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" )
)

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors