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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Yvalson
Frequent Visitor

Countrows returns only totals over period.

Hi there,

I'm trying to show the amount of claims in a given year based on the category of the claim.

 

I have the following DAX formula:

 

Count claim categorie = CALCULATE(COUNTROWS('Claim redenen'); 'Claim redenen'[Claim categorie] = "Productkwaliteit")
 
I have a matrix table that has a list of articles of which I need to know many claims of a particular category have been made.
 
Currently the entire table just shows the same value "80".
 
I thought using Calculate would fix this problem, but I can't put my finger on it.
formula.PNG

Can anyone help me out here?

Thanks in advance!

 

Kind regards.

 

1 ACCEPTED SOLUTION
mussaenda
Super User
Super User

Hi @Yvalson ,

 

You need a relationship with your Calendar table to reflect the values monthly

View solution in original post

2 REPLIES 2
mussaenda
Super User
Super User

Hi @Yvalson ,

 

You need a relationship with your Calendar table to reflect the values monthly

Thank you I was referencing the wrong table. 'Claims redenen' only has a relation with the Claims table.

 

The claims table has a relation with the calender table.

 

Bij counting the rows in Claims it works as intended. I now just need to make sure that the amount is correct.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.