cancel
Showing results for 
Search instead for 
Did you mean: 
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
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

Thank you 2022 Review

2022 Monthly Feature Releases

We had a great 2022 with a ton of feature releases to help you drive a data culture.

Top Solution Authors
Top Kudoed Authors