Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi, I need to create a measure to calculate # of all cases (regardless of date opened) that were active (no closed date) at the end of each fiscal quarter and display the measure on a historical line chart. I have a Calendar table and I need to visualize the measure on it because it has fiscal year information but I am getting confused on how to capture all cases that were active.
I did this measure, but it's counting cases that were opened in that quarter, I assume because I have a direct connection from fact table to dim calendar. How do I count and visualize this, I am confused...
Open Cases =
COUNTROWS( FILTER( ALL('Fact Table'),
[DateOpened] <= MAX('DIM Calendar'[Full Date])
&& [DateClosed] >= MAX('DIM Calendar'[Full Date]) ) )
Attaching a sample of my Power BI as well.
Solved! Go to Solution.
@Unknowncharacte , You have to use cross filter to remove the join
refer, blog video, or attached files after signature
Power BI: HR Analytics - Employees as on Date : https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
Power BI HR Active Employee Tenure Bucketing, and Hired, Terminated, and Active employees: https://youtu.be/fvgcx8QLqZU
I did this measure, but it's counting cases that were opened in that quarter, I assume because I have a direct connection from fact table to dim calendar. How do I count all "active" cases?
Open Cases = COUNTROWS( FILTER( ALL('Fact Table'), [DateOpened] <= MAX('DIM Calendar'[Full Date]) && [DateClosed] >= MAX('DIM Calendar'[Full Date]) ) )
@Unknowncharacte , You have to use cross filter to remove the join
refer, blog video, or attached files after signature
Power BI: HR Analytics - Employees as on Date : https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
Power BI HR Active Employee Tenure Bucketing, and Hired, Terminated, and Active employees: https://youtu.be/fvgcx8QLqZU
Thank you so so much! Active employee count worked perfectly for me!
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 |
|---|---|
| 47 | |
| 44 | |
| 40 | |
| 18 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 33 | |
| 32 | |
| 32 |