Forum Discussion
!Creating a measure referencing other measures
- Anonymous5 years ago
Hi Anonymous,
#1, You can try to use the following formula to calculate active contract id.
Active Percent = CALCULATE ( COUNT ( Table[Contract ID] ), FILTER ( ALLSELECTED ( Table ), [Status] = "Active" ), VALUES ( Table[Parent Contract] ) )#2, You can remove the allselected function to limit the calculation on current row content and invoke the above measure results.
Allocation of Parent Percent = DIVIDE ( CALCULATE ( COUNT ( Table[Contract ID] ), FILTER ( Table, [Status] = "Active" ), VALUES ( Table[Parent Contract] ) ), [Active Percent], 0 )Regards,
Xiaoxin Sheng
Source Tables:
CRM Report = contains population of all child contracts
Parent Contract Pivot = listing of all active child contracts and associated parent contract
Measure for numerator:
Anonymous
I lost track what you want to do. Maybe I'm too stupid, but in every post the columns are called a little different. Once [count of contract], then [Active Child Count], then [Contract] and [Parent Contract].
Can you please post an easy-to-understand summary of your problem with a table with your Contract ID and all the measures and columns you are using?
By the way, COUNTROWS(DISTINCT and DISTINCTCOUNT should be the same for your last 2 measures