Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 the visual. Is there something that I'm missing or is there another option to add dates?
Count of Active Policy =
Solved! Go to Solution.
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
Proud to be a Super User!
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))
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))
Thanks for your reply. You measure worked for me.
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
Proud to be a Super User!
Thanks for your reply. You measure worked for me.
Hi @wnicholl ,
You are welcome!
Nathaniel
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
106 | |
87 | |
74 | |
66 |
User | Count |
---|---|
125 | |
114 | |
98 | |
81 | |
73 |