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
david40ni
Helper I
Helper I

Visualization of sales by year

 

I need to show a report like the below where I can add the year to a chart I no we have a bar chart but I am trying to figure out how I can have year as an axis against the sales ?. Also is there any visulization that would give that a plus or minus look like the item group report

 

capture sales by year.PNG

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @david40ni

Add "date" column to the Axis field in the column chart, and turn it to "Date Hierarchy", then delete "day","month","quarter", but only keep "year".

1.png

another visualization can use a table visual and then apply conditional formatting.

To get the visual below, you need create some measures

4.png

 

total applied databar = MAX([total])

flag = IF(MAX([vs])>=0,1,0)

plusorminus = IF([vs]>=0,CONCATENATE("+",[vs]),CONCATENATE("-",[vs]))

2.png

 

3.png

 

 

Reference:

desktop-conditional-table-formatting

 

dataBars

 

Best Regards

Maggie

View solution in original post

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @david40ni

Add "date" column to the Axis field in the column chart, and turn it to "Date Hierarchy", then delete "day","month","quarter", but only keep "year".

1.png

another visualization can use a table visual and then apply conditional formatting.

To get the visual below, you need create some measures

4.png

 

total applied databar = MAX([total])

flag = IF(MAX([vs])>=0,1,0)

plusorminus = IF([vs]>=0,CONCATENATE("+",[vs]),CONCATENATE("-",[vs]))

2.png

 

3.png

 

 

Reference:

desktop-conditional-table-formatting

 

dataBars

 

Best Regards

Maggie

drewlewis15
Solution Specialist
Solution Specialist

Power BI will automatically create a date hierarchy based on your date field, so you can add that date field to the axis and get your desired result.  

 

The other visual would be a simple table with conditional formatting applied along with a measure to show the + -, which is all possible within Power BI.

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.