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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors