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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Fusilier2
Helper V
Helper V

Decimal places for measure

Hi,

Is there any way of changing the decimal place formatting for a measure?

I have this measure:

Complaints responded within timescale previous year = CALCULATE(SUM('Complaints  - Number of complaints responded to and within timescale]),SAMEPERIODLASTYEAR('Calendar'[Date]))

I've tried selecting the measure and setting the decimal points to 0 in formatting but it doesn't change.

formatting.PNG

The red line is the measure:

chart 1.PNG

 

 

1 ACCEPTED SOLUTION
v-dineshya
Community Support
Community Support

Hi @Fusilier2 ,

Thank you for reaching out to the Microsoft Community Forum.

 

Please follow below steps.

1. created sample data , refer the snap.

vdineshya_0-1748514239573.png

2. 

Create a Calendar Table

Calendar = CALENDAR(DATE(2023,1,1), DATE(2024,12,31))
Relate Complaints[Date] to Calendar[Date].

3. Created DAX Measures as per the requirement

% Responded =
DIVIDE(
SUM(Complaints[Complaints Responded]),
SUM(Complaints[Complaints Received])
)

% Responded Previous Year =
CALCULATE(
[% Responded],
SAMEPERIODLASTYEAR('Calendar'[Date])
)

% Responded Previous Year (Formatted) =
FORMAT([% Responded Previous Year], "0%")

4. select the Line and Area Chart

X-axis: Calendar[Date]

Y-axis: % Responded and % Responded Previous Year

5. Data Labels Formatting

In the visual's Data labels pane, try setting decimal places to 0

vdineshya_1-1748514534515.png

Please refer the output snap and PBIX file.

 

If my response has resolved your query, please mark it as the "Accepted Solution" to assist others. Additionally, a "Kudos" would be appreciated if you found my response helpful.

Thank you

View solution in original post

7 REPLIES 7
v-dineshya
Community Support
Community Support

Hi @Fusilier2 ,

Thank you for reaching out to the Microsoft Community Forum.

 

Please follow below steps.

1. created sample data , refer the snap.

vdineshya_0-1748514239573.png

2. 

Create a Calendar Table

Calendar = CALENDAR(DATE(2023,1,1), DATE(2024,12,31))
Relate Complaints[Date] to Calendar[Date].

3. Created DAX Measures as per the requirement

% Responded =
DIVIDE(
SUM(Complaints[Complaints Responded]),
SUM(Complaints[Complaints Received])
)

% Responded Previous Year =
CALCULATE(
[% Responded],
SAMEPERIODLASTYEAR('Calendar'[Date])
)

% Responded Previous Year (Formatted) =
FORMAT([% Responded Previous Year], "0%")

4. select the Line and Area Chart

X-axis: Calendar[Date]

Y-axis: % Responded and % Responded Previous Year

5. Data Labels Formatting

In the visual's Data labels pane, try setting decimal places to 0

vdineshya_1-1748514534515.png

Please refer the output snap and PBIX file.

 

If my response has resolved your query, please mark it as the "Accepted Solution" to assist others. Additionally, a "Kudos" would be appreciated if you found my response helpful.

Thank you

Hi @Fusilier2 ,

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet.do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

 

Thank you.

Hi @Fusilier2 ,

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet.do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

 

Thank you.

Hi @Fusilier2 ,

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet.do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

 

Thank you.

ryan_mayu
Super User
Super User

@Fusilier2 

1. make sure you set up for the correct measure. 

 

2. you can also try to change the format in the data format

 

11.png





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

Proud to be a Super User!




bhanu_gautam
Super User
Super User

@Fusilier2 Try using


Complaints responded within timescale previous year =
ROUND(
CALCULATE(
SUM('Complaints - Number of complaints responded to and within timescale]),
SAMEPERIODLASTYEAR('Calendar'[Date])
),
0
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Thank you, unfortunately that rounds the values up to 100%

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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