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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
ahhollan
Helper I
Helper I

Filtering report by date and sum of quantity

I have an excel ssheet that is connected to Power BI.  It has individual overtime entries for employees. Overtime hours for a given day are in the column called 'Quantity'.  When I create a bar chart report and filter to data within a given date, I also want to filter on the sum of the quantity for the selected dates for an employee.  Adding Quantity as a filter only filters on the individual rows. How do I set this up so that the quantity filter is based on the sum of the records for the employee?  When I set the field as a sum, the values on each bar are the sum of the records for that employee, but the filter still only filters individual records.

3 REPLIES 3
parry2k
Super User
Super User

@ahhollan create a measure for sum of quantity and use this measure in visual level filter



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Here is the formula I used 

SumQty = SUM(Page1[Qty])
 
It's still filtering on quantity and not the sum. I get no results returned when I set min and max numbers on sum filter.
dax
Community Support
Community Support

Hi ahhollan, 

If possible, could you please inform me more detailed information (such as your sample data and your expected output)? Then I will help you more correctly.

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors