Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
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.
The red line is the measure:
Solved! Go to Solution.
Hi @Fusilier2 ,
Thank you for reaching out to the Microsoft Community Forum.
Please follow below steps.
1. created sample data , refer the snap.
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
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 ,
Thank you for reaching out to the Microsoft Community Forum.
Please follow below steps.
1. created sample data , refer the snap.
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
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.
1. make sure you set up for the correct measure.
2. you can also try to change the format in the data format
Proud to be a 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
)
Proud to be a Super User! |
|
Thank you, unfortunately that rounds the values up to 100%
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
58 | |
55 | |
55 | |
37 | |
30 |
User | Count |
---|---|
78 | |
64 | |
45 | |
43 | |
40 |