Forum Discussion
Manar
Helper II
8 years agoask 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 expr...
- 8 years ago
You may refer to measure below.
Measure = VAR prev = SELECTEDVALUE ( ClaimFactsStag[PrevReportingPeriod] ) RETURN CALCULATE ( COUNT ( ClaimFactsStag[ClaimNbr] ), ClaimFactsStag[ReportingPeriod] = prev, ALLSELECTED ( ClaimFactsStag ) )
v-chuncz-msft
Community Support
8 years ago
You may refer to measure below.
Measure =
VAR prev =
SELECTEDVALUE ( ClaimFactsStag[PrevReportingPeriod] )
RETURN
CALCULATE (
COUNT ( ClaimFactsStag[ClaimNbr] ),
ClaimFactsStag[ReportingPeriod] = prev,
ALLSELECTED ( ClaimFactsStag )
)
Manar
Helper II
8 years agov-chuncz-msft it worked Thank you!!