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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
powerbiexpert22
Impactful Individual
Impactful Individual

comparison between latest and average

We need to show comparison between latest cost of plan and average cost of earlier plans and show delta (different between latest and average) using charts, below is the sample data, which type of chart would be better?, should it be clustered bar chart?

latest row is highlighted in yellow, earlier rows are highlighted in blue

example lastest cost is 40 in yellow

average of all cost in blue is 30

delta is 40-30=10

 

powerbiexpert22_1-1707970288202.png

 

powerbiexpert22_2-1707970377870.png

 

 

 

1 REPLY 1
TomMartens
Super User
Super User

Hey @powerbiexpert22 ,

 

as a semantic model does not have an implicit ordering of rows (you name is plan) it's required to identify the latest row. This can be done by date and ..., but it's essntial that the latest row can be identified. If you can not add a rownumber to the data then it can become difficult. Of course, it's possible also possible to compare an average of the latest rows with the average of all other rows.

 

If you need help crafting a DAX statement, I recommend that you rreate a pbix that contains sample data but still reflects your semantic model (tables, relationships, calculated columns, and measures). Upload the pbix to OneDrive, Google Drive, or dropbox and share the link here in this thread.

 

Regarding your question about the visualization type, comparing two valuest (latest vs average) I prefer a clustered column chart. Here you will find a list of data visualization tasks and often used data visualization types: https://github.com/Financial-Times/chart-doctor/blob/main/visual-vocabulary/README.md.

 

Hopefully, this helps to tackle your challenge.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.