Forum Discussion
wnicholl
Resolver II
3 years agoAdding year to measure
Hello, I need to add a year to the below formula. I tried to add; DATESBETWEEN('Calendar'[Date], DATE(2017,01,01), DATE(2017,31,12) to the formula however when I add as a value it can't display t...
- 3 years ago
Hi wnicholl ,
Please try this:Your tables will need to be linked in the data model usually Calendar to Policy and Calendar to Account. Count of Active Policy = CALCULATE( DIVIDE( DISTINCTCOUNT('Policy'[Active Policy - Accnt ID]), DISTINCTCOUNT('Account'[Full_Account_ID__c]) ) FILTER(CALENDAR, CALENDAR[DATE]>= DATE(2017,01,01) && CALENDAR[DATE]<= DATE(2017,31,12)))
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos πare nice too.
Nathaniel - 3 years ago
Hi,
Does this measure work?
Count of Active Policy = calculate(DIVIDE(DISTINCTCOUNT('Policy'[Active Policy - Accnt ID]),DISTINCTCOUNT('Account'[Full_Account_ID__c])),DATESBETWEEN('Calendar'[Date], DATE(2017,01,01), DATE(2017,31,12))
Nathaniel_C
Community Champion
3 years agoHi wnicholl ,
Please try this:
Your tables will need to be linked in the data model usually Calendar to Policy and Calendar to Account.
Count of Active Policy =
CALCULATE(
DIVIDE(
DISTINCTCOUNT('Policy'[Active Policy - Accnt ID]),
DISTINCTCOUNT('Account'[Full_Account_ID__c])
)
FILTER(CALENDAR, CALENDAR[DATE]>= DATE(2017,01,01) && CALENDAR[DATE]<= DATE(2017,31,12)))
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos πare nice too.
Nathaniel
wnicholl
Resolver II
3 years agoThanks for your reply. You measure worked for me.
- Nathaniel_C3 years ago
Community Champion
Hi wnicholl ,
You are welcome!Nathaniel