cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sash Frequent Visitor
Frequent Visitor

bar chart sizes not correct

Hi there,

 

I have a problem that seems to me as a bug in the PowerBI chart visual.

 

I have a column that is defined as a decimal number. Then I have a measure that sums this column and is defined as a whole number (in the Modelling tab).

 

When I create a bar chart for the measure, the result in the chart is strange. Both 18 Jan and 19 Jan have the value of 12, however in the chart the size of the bars are different. Also the bar height difference between 2 and 3 and 3 and 4 is different. Look at the data table below.

 

Has anyone experienced this before?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Vvelarde Super Contributor
Super Contributor

Re: bar chart sizes not correct

@sash

 

hi, the difference is because 18-01 is 11.5 and 19 is 12.0

 

The Format is only to display but not change the Data Type.

 

If you need the 11.5 transform in 12, you have to round up engagements Measure.

 

Engagements = ROUNDUP(SUM(FactTweetEngagement[EngagementsDiff]),0)




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

Proud to be a Datanaut!




View solution in original post

6 REPLIES 6
Vvelarde Super Contributor
Super Contributor

Re: bar chart sizes not correct

@sash

 

Can you add the labels to show the value of each bar ?

Thanks




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

Proud to be a Datanaut!




sash Frequent Visitor
Frequent Visitor

Re: bar chart sizes not correct

 

Yep, here it is. It seems that the measure in the chart is not used as "whole number".

 

powerbi_chart_2.png

Moderator v-yuezhe-msft
Moderator

Re: bar chart sizes not correct

Hi @sash,

Do you use the latest version of Power BI Desktop(2.42.4611.901)? Would you mind sharing me sample data of  your table and show me the formula of the measure?


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
sash Frequent Visitor
Frequent Visitor

Re: bar chart sizes not correct

Hi,

 

I'm using version 2.42.4611.701 64-bit (Januar 2017).

 

I've attached the sample data (zipped CSV file) here: https://1drv.ms/u/s!AoJ9FEKQgrq6hH12UhV34O39xoDB

 

The column EngagementsDiff is defined as Sum, data type Decimal Number.

 

The measure Engagements is defined as:  

SUM('fact_TweetEngagement'[EngagementsDiff])

The format is defined as "Whole Number".

 

 

Highlighted
Vvelarde Super Contributor
Super Contributor

Re: bar chart sizes not correct

@sash

 

hi, the difference is because 18-01 is 11.5 and 19 is 12.0

 

The Format is only to display but not change the Data Type.

 

If you need the 11.5 transform in 12, you have to round up engagements Measure.

 

Engagements = ROUNDUP(SUM(FactTweetEngagement[EngagementsDiff]),0)




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

Proud to be a Datanaut!




View solution in original post

sash Frequent Visitor
Frequent Visitor

Re: bar chart sizes not correct

Perfect, thank you!

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 6 members 4,289 guests
Please welcome our newest community members: