Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi all,
I'm finding a way to display difference between two values in my clustered column chat. I have a measure to calculate the difference but don't know how to integrate it to the chart.
Solved! Go to Solution.
You need year on the axis to achieve what you want, which is why I proposed a new data structure.
My measure looks like this:
Population growth =
(CALCULATE(SUM(test[Population]); test[Year]=2014) / CALCULATE(SUM(test[Population]); test[Year]=2000)) - 1
See picture below. There is 2 types of visualizations. One with clustered bar and another one with clustered chart and trend line. If you hover over the columns, you'll see the population growth.
@s15 wrote:
Hi all,
I'm finding a way to display difference between two values in my clustered column chat. I have a measure to calculate the difference but don't know how to integrate it to the chart.
What is your difference measure like? You could probably put the measure to the tooltip field.
By the way, for me, I'd use a line chart. See more details in the attached pbix file.
difference = CALCULATE ( DIVIDE ( SUM ( yourTable[Value] ) - CALCULATE ( SUM ( yourTable[Value] ), SAMEPERIODLASTYEAR ( 'calendar'[Date] ) ), SUM ( yourTable[Value] ) ) )
I just need to display the difference of growth between year 2000 and year 2014. My dataset contains population of Canada in different years. From my example, the growth rate is 13,42% by the measure below
Difference = 1 - (SUM(Population[2000])/SUM(Population[2014]))
Displaying the difference is helpful to explain my data.
I drag and drop my measure into Tooltip but nothing changes.
@Anonymous
This is very simple like this
Just typo. You don't have to worry about the year. It is my typo. I just want to display the growth rate in clustered chart.
If you have this data structure:
Year Population Country
2000 10000000 Canada
2014 20000000 Canada
You can use this visual: Line & Clustered column chart. Then just plot the according values.
With this data set, how is your measure look like? I want to divide population in 2000 by 2014 @Anonymous
You need year on the axis to achieve what you want, which is why I proposed a new data structure.
My measure looks like this:
Population growth =
(CALCULATE(SUM(test[Population]); test[Year]=2014) / CALCULATE(SUM(test[Population]); test[Year]=2000)) - 1
See picture below. There is 2 types of visualizations. One with clustered bar and another one with clustered chart and trend line. If you hover over the columns, you'll see the population growth.
Can I have the "20%" display somewhere on the chart?
You can drag the card visual on top of the clustered bar chart and then push it to front. But, to my knowledfe, there isn't the type of integration, which you are asking for.
No it is not. Could you please show your screenshot? The chart that @Eric_Zhang is very hard to understand.
Thank you.
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 |
---|---|
84 | |
75 | |
68 | |
41 | |
35 |
User | Count |
---|---|
102 | |
56 | |
52 | |
46 | |
40 |