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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
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.