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
anithfanz
New Member

Count Occurrence with two filters

Hye,

I have an issue in finding a solution for this problem.

I need to calculate the number of truck arrive filtered by week, and the truck specification is as below.  But I can't seem to find a correct formula for this, can anyone help me?

 

Truck Size              Occurence by week

1 Tonne

3 Tonne

5 Tonne

10 Footer

20 Footer

40 Footer

 

2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi @anithfanz 

Have you solved this question with lbendlin's help? If you still need more help, please provide

(1) some sample data that fully covers your issue/question

(2) give your expected result based on the sample you provide

Thanks.

 

Best Regards,

Community Support Team _Tang

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

lbendlin
Super User
Super User

There's a DAX function COUNTROWS() that you can use in your measure as needed.  Or use the standard "Count"  aggregation in some visuals.

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.