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
benz-fsproduce
Frequent Visitor

undefined

Hi, I am currently trying prepare a graph for it to compare headcounts in 2022 and 2023. I have an area chart that shows the head count goal, current position filled, and critical. The headcount goal shows our companies maximum capacity, the current positions filled shows how many employees we currently have, and critical shows where we need to work better on recruiting. My coworker wants to set the graph up so that 2022 current positions filled and 2023 current postions filled are seperate lines. I can't seem to get this right. I have pasted my excel data and took screen shots of what I am talking about.

DateHeadcount GoalOKCriticalCurrent Positions Filled
1/5/2022252212-251211242
1/11/2022252212-251211241
1/19/2022252212-251211234
1/26/2022252212-251211237
1/31/2022252212-251211239
2/7/2022252212-251211237
2/16/2022252212-251211234
2/23/2022252212-251211231
3/2/2022252212-251211229
3/7/2022252212-251211231
3/16/2022252212-251211229
3/23/2022252212-251211229
3/30/2022252212-251211228
4/6/2022252212-251211228
4/13/2022252212-251211225
4/20/2022252212-251211214
4/27/2022252212-251211220
5/3/2022259219-258218220
5/11/2022259219-258218221
5/18/2022259219-258218205
5/24/2022259219-258218228
6/1/2022259219-258218212
6/8/2022259219-258218215
6/15/2022259219-258218206
6/22/2022259219-258218210
6/28/2022259219-258218208
7/6/2022259219-258218207
7/12/2022259219-258218218
7/19/2022259219-258218220
7/27/2022259219-258218225
8/2/2022261220-260219216
8/9/2022261220-260219221
8/16/2022261220-260219209
8/24/2022261220-260219216
8/31/2022261220-260219212
9/7/2022261220-260219216
9/14/2022261220-260219220
9/21/2022261220-260219211
9/28/2022261220-260219209
10/5/2022261220-260219231
10/12/2022261220-260219228
10/19/2022261220-260219226
10/25/2022261220-260219231
11/1/2022261220-260219234
11/8/2022261220-260219235
11/15/2022261220-260219230
11/22/2022261220-260219229
11/29/2022261220-260219231
12/6/2022261220-260219233
12/13/2022261220-260219230
12/20/2022261220-260219234
12/27/2022    
1/5/2023261220-260219250
1/12/2023261220-260219241
1/19/2023261220-260219246

benzfsproduce_0-1671651336624.png

I do not need the "OK" column in this graph. I appreciate the help.

2 REPLIES 2
Shaurya
Memorable Member
Memorable Member

Hi @benz-fsproduce,

 

You can create separate measures for the years like:

 

Current Positions 2022 = CALCULATE(SUM('Table'[Value]),FILTER('Table','Table'[Year=]=2022))

 

But I'm curious. You will still have the month year in the X-Axis. Are you planning to show the numbers only for months on the axis with lines for different years? Because otherwise it seems like a hassle when you have data for several years.

 

Did I answer your question? Mark this post as a solution if I did!
Check out this blog of mine: How to Export Telemetry Data from Azure IoT Central into Power BI

I want just the month on the x-axis, but when I do this happens. 

benzfsproduce_0-1671653326296.png

 

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
Top Kudoed Authors