Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Events in progress issue

Hi,

 

I used the solution here : http://blog.gbrueckl.at/2014/12/events-in-progress-for-time-periods-in-dax/

 

But I still have an issue with analysis by stage as at the end of the period. 

Formula I used is:

TableFIN = CALCULATE(
DISTINCTCOUNT(HistoriqueStatutsDossiers[Nb]),
HistoriqueStatutsDossiers[FileStatusName] <> "ENQ-Fermé",
GENERATE(
VALUES(Calendrier[Date]),
FILTER(
HistoriqueStatutsDossiers,
CONTAINS(
DATESBETWEEN(
Calendrier[Date],
HistoriqueStatutsDossiers[Status_Date],
HistoriqueStatutsDossiers[StatusEndDate]
),
[Date],Calendrier[Date]) ) ))
 
Visual total returning good number, but kept the previous event per former "StatusCode".  I expected to have only the latest StatusCode.
 

TableFinMeasureVisual.PNG

Thank you

Norm

 

0 REPLIES 0

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.