Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Source and Expected Output
Solved! Go to Solution.
@Anonymous
here is a workaround for you
create a closecount column
closecount = if(ISBLANK('Table'[closed_date]),0,if('Table'[closed_date]=MAXX(FILTER('Table','Table'[Incident_Number]=EARLIER('Table'[Incident_Number])),'Table'[closed_date]),1,0))
then create measures
Open count = DISTINCTCOUNT('Table'[Incident_Number])
Close count =
CALCULATE(SUM('Table'[closecount]),USERELATIONSHIP('Calendar'[Date],'Table'[closed_date]))
opennet = [Open count]-[Close count]
However , I have a question.
1244306, last close in Nov
1250824 , last close in Dec
1050761, last close in Oct.
So should be 1 for Oct, Nov and Dec. How come your result is 2,0,1?
please see the attachment below
Proud to be a Super User!
@Anonymous
here is a workaround for you
create a closecount column
closecount = if(ISBLANK('Table'[closed_date]),0,if('Table'[closed_date]=MAXX(FILTER('Table','Table'[Incident_Number]=EARLIER('Table'[Incident_Number])),'Table'[closed_date]),1,0))
then create measures
Open count = DISTINCTCOUNT('Table'[Incident_Number])
Close count =
CALCULATE(SUM('Table'[closecount]),USERELATIONSHIP('Calendar'[Date],'Table'[closed_date]))
opennet = [Open count]-[Close count]
However , I have a question.
1244306, last close in Nov
1250824 , last close in Dec
1050761, last close in Oct.
So should be 1 for Oct, Nov and Dec. How come your result is 2,0,1?
please see the attachment below
Proud to be a Super User!
Hi @ryan_mayu is there any way to create below column in Measure..?
Closecount = if(ISBLANK('Table'[closed_date]),0,if('Table'[closed_date]=MAXX(FILTER('Table','Table'[Incident_Number]=EARLIER('Table'[Incident_Number])),'Table'[closed_date]),1,0))
@ryan_mayu Thanks for spending your time on this task.
Yes you're right it should be 1 for Oct. I made mistake on output calculation.
Once agian thank you very much @ryan_mayu .. It's very useful to me.
For the above post here is the conditions to be maintained. Can some one help me to achive.
Open Count: For a given month, total distinct count that had at least 1 CA that was open as on EOM
Close Count: For a given month, total distinct count for which the last CA was closed in that month
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 78 | |
| 40 | |
| 31 | |
| 27 | |
| 27 |