Forum Discussion
Manar
8 years agoHelper II
ask question
Hi, I am trying to count claims by reporting period (want to compare between current and last period),
I have a column Current Reporting Period and Prev Reporting Period, I wrote the following expression
CountOfClaimPrev = calculate(count(ClaimFactsStag[ClaimNbr]),ClaimFactsStag[PrevReportingPeriod])
But it shows me the same value as current report whe I put it in my table
Please Help
You may refer to measure below.
Measure = VAR prev = SELECTEDVALUE ( ClaimFactsStag[PrevReportingPeriod] ) RETURN CALCULATE ( COUNT ( ClaimFactsStag[ClaimNbr] ), ClaimFactsStag[ReportingPeriod] = prev, ALLSELECTED ( ClaimFactsStag ) )
2 Replies
- v-chuncz-msftCommunity Support
You may refer to measure below.
Measure = VAR prev = SELECTEDVALUE ( ClaimFactsStag[PrevReportingPeriod] ) RETURN CALCULATE ( COUNT ( ClaimFactsStag[ClaimNbr] ), ClaimFactsStag[ReportingPeriod] = prev, ALLSELECTED ( ClaimFactsStag ) )- ManarHelper II
v-chuncz-msft it worked Thank you!!