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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
mahra-in
Helper II
Helper II

Limit the Decimal of a Measure used in Text Box

Hi

 

I have to dispaly a card with value from a measure but the value comes with decimal which I dont want

 

Text = "Data Not available for " &[No Data]*100& "% of Entries"

 

The output Im getting is 

 

Data Not available for 13.35457288383%

 

Is there a way to limit to the decimal or no decimal so that the result could be

 

Data Not available for 13% of Entries

 

Please help

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @mahra-in,

 

Since your measure return the text value, I think you can use format function to formatting decimal number part.

 

Please take a look at below link to know more about format measure:

Custom Numeric Formats for the FORMAT Function (DAX)

 

Sample:

Text format =
"xxxxx"
    & FORMAT ( [No Data] * 100, "0.00" )
    & "xxxx"

 

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
SivaMani
Resident Rockstar
Resident Rockstar

@mahra-in,

 

Click the field and change number of decimal place under Modelling tab,

 

decimal.PNG

The filed No Data is set with 0 in Decimal Places but when I use the field in between text ic omes with many decimal points1.PNG

 

2.PNG

 

still the result is same

 

Anonymous
Not applicable

Hi @mahra-in,

 

Since your measure return the text value, I think you can use format function to formatting decimal number part.

 

Please take a look at below link to know more about format measure:

Custom Numeric Formats for the FORMAT Function (DAX)

 

Sample:

Text format =
"xxxxx"
    & FORMAT ( [No Data] * 100, "0.00" )
    & "xxxx"

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors