March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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
Solved! Go to Solution.
You may refer to measure below.
Measure = VAR prev = SELECTEDVALUE ( ClaimFactsStag[PrevReportingPeriod] ) RETURN CALCULATE ( COUNT ( ClaimFactsStag[ClaimNbr] ), ClaimFactsStag[ReportingPeriod] = prev, ALLSELECTED ( ClaimFactsStag ) )
You may refer to measure below.
Measure = VAR prev = SELECTEDVALUE ( ClaimFactsStag[PrevReportingPeriod] ) RETURN CALCULATE ( COUNT ( ClaimFactsStag[ClaimNbr] ), ClaimFactsStag[ReportingPeriod] = prev, ALLSELECTED ( ClaimFactsStag ) )
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
106 | |
98 | |
65 | |
54 |