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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Column chart showing multiple years from single SharePoint list

i want a column chart that shows completed projects divided between client work and internal work annually. I have a SharePoint list that has a column with the date of completion of projects and another column with the client/internal work split. It is easy enough to show the completed work for one year by filtering the dates but how do I do this for multiple years.

 

The example below is what I am looking for - this uses an excel file specifically set up to show the data, but I do not want to continue to use excel for the data, instead linking it to the SharePoint list. 

BICapture6.jpg

 

Cheers

Steve

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thank you for your suggested solution. I have managed to figure out how to achieve my desired result, without resort to additional formulas (see below).

BICapture7.jpg

View solution in original post

3 REPLIES 3
v-zhenbw-msft
Community Support
Community Support

Hi @Anonymous ,

 

Sorry for that we are not clear about your issue.

Do you want to add up the data every two years?

If yes, you can refer the following steps.

 

1. Create three columns, year column, next year column and combine column.

 

Year = YEAR('Table'[Date])

 

Next_year = 
var _lastYear = 'Table'[Year]+1
return
IF(
    'Table'[Year]=YEAR(TODAY()),'Table'[Year],_lastYear)

 

Yea_nextYear = 
var _x='Table'[Year]&"/"&'Table'[Next_year]
return
IF(
    'Table'[Year]='Table'[Next_year],CONVERT('Table'[Year],STRING),_x)

 

col1.jpg

 

2. Then we can create a measure to get the result.

 

Measure = 
CALCULATE(
    SUM('Table'[value]),
    FILTER(
        ALLSELECTED('Table'),
        'Table'[Year]<=MAX('Table'[Year])+1&&'Table'[Year]>=MAX('Table'[Year])))

 

col2.jpg

 

If it doesn’t meet your requirement, could you please provide a mockup sample based on fake data?

It will be helpful if you can show us the exact expected result based on the tables.

 

Please upload your files to OneDrive For Business and share the link here. Please don't contain any Confidential Information or Real data in your reply.

 

Best regards,

 

Community Support Team _ zhenbw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

BTW, pbix as attached.

Anonymous
Not applicable

Thank you for your suggested solution. I have managed to figure out how to achieve my desired result, without resort to additional formulas (see below).

BICapture7.jpg

amitchandak
Super User
Super User

@Anonymous , need to look at data.

This is a stacked visual. With close date(or date from date table joined with close date) on-axis.  Client type as a legend. Count of the project or some other measure as values.

 

Stacked visual -https://www.youtube.com/watch?v=fYoQJFBldlY

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors