Forum Discussion

Unknowncharacte's avatar
Unknowncharacte
Helper III
2 years ago
Solved

Filter Historical Data

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. 

Sample Data.pbix

 

3 Replies