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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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