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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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 Kudoed Authors