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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Danielwood
Helper I
Helper I

Simple table query

Hi all,

 

I'm hoping this is pretty simple.

 

I have quite a large database, with some rows duplicated for various reasons. There is a reference column to identify each work package. This reference is duplicated across some rows.

Next to that I have the status, and the next column is simply the year it was raised. My last column is the year the work package will close.

 

What I'm after is a pie chart that shows for all items raised in XX (using a slicer) the pie chart will show how many are closing in each year.

 

The issues I'm having though are firstly I can't get it to group on the reference, so if it's split across 3 rows I only want it counted once (the year will be the same across the 3 rows)

Secondly, I only want it to show items that have a status of open.

Third I also need a count of items closed in the year selected in the slicer. 

 

My guess is I need a query which produces a table to break down how many closed that year, then how many close next year, the year after etc etc. I just can't work out how to do it.

 

Anyone able to assist please?

 

Thanks in advance

1 REPLY 1
lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.