Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hey Community,
I have been langishing over this for some time.
I have a list of policies with start and end dates and I want to visualize them over time with a total of "active policies" for any given period.
| PolicyNo | StartDate | EndDate |
| 1 | 1/1/2019 | 1/15/2020 |
| 2 | 1/1/2020 | 2/20/2022 |
| 3 | 1/2/2020 | 2/20/2022 |
| 4 | 3/1/2021 |
Some policies don't have end dates because they are continuously billing.
Thank you,
Solved! Go to Solution.
This is magical! I didnt think to look at HR type visualizations. Thank you. Im going to impliment this today and if all is well will mark as the solution.
Hi, @escaddie
You can try the following methods.
Date Table:
Date = CALENDAR(MIN('Table'[StartDate]),MAX('Table'[EndDate]))
Measure:
active policies =
CALCULATE (
COUNT ( 'Table'[PolicyNo] ),
FILTER (
ALL ( 'Table' ),
[StartDate] <= MAX( 'Date'[Date] )
&& [EndDate] >= MAX('Date'[Date] )
)
)
+ CALCULATE (
COUNT ( 'Table'[PolicyNo] ),
FILTER (
ALL ( 'Table' ),
[StartDate] <= Min( 'Date'[Date] )
&& [EndDate] = BLANK ()
)
)
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @escaddie
You can try the following methods.
Date Table:
Date = CALENDAR(MIN('Table'[StartDate]),MAX('Table'[EndDate]))
Measure:
active policies =
CALCULATE (
COUNT ( 'Table'[PolicyNo] ),
FILTER (
ALL ( 'Table' ),
[StartDate] <= MAX( 'Date'[Date] )
&& [EndDate] >= MAX('Date'[Date] )
)
)
+ CALCULATE (
COUNT ( 'Table'[PolicyNo] ),
FILTER (
ALL ( 'Table' ),
[StartDate] <= Min( 'Date'[Date] )
&& [EndDate] = BLANK ()
)
)
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This was great pretty much exactly what I needed. I changed the ALL filters to ALL selected so I could filter them on the visual but other than that works like a charm. Thank you.
This is magical! I didnt think to look at HR type visualizations. Thank you. Im going to impliment this today and if all is well will mark as the solution.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 23 | |
| 14 | |
| 10 | |
| 6 | |
| 5 |