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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.