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

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

Reply
Anonymous
Not applicable

Count for multiple filters and criterias

Hi. I need some help trying to count how many values are in the table filtering with multiple criterias. Here as short view of the table that I got. 
2019-08-05 09_32_10-Window.png

 

Basically i need to get the numbers in the column "Products per shift" in red. So I need to count how many Products where in one day and in exact shift. Maybe some advice from You guys? 

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

Hi @Anonymous 

 

Try following

 

=
CALCULATE (
    DISTINCTCOUNT ( TableName[Products] ),
    ALLEXCEPT ( TableName, TableName[Date], TableName[Shift] )
)

View solution in original post

1 REPLY 1
Zubair_Muhammad
Community Champion
Community Champion

Hi @Anonymous 

 

Try following

 

=
CALCULATE (
    DISTINCTCOUNT ( TableName[Products] ),
    ALLEXCEPT ( TableName, TableName[Date], TableName[Shift] )
)

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors