Forum Discussion
Anonymous
5 years agoNot applicable
Cumulate values between two date fields
Hello, I face an issue that looks simple but I don't find the trick. My wish is to display on a visual the power cumulated year by year of the plants between StartDate and EndDate Our first ...
- 5 years ago
Hi, Anonymous
Please check the below picture and the sample pbix file's link down below.
Power Measure =IF (ISFILTERED ( Dates ),CALCULATE (SUMX (Plants,Plants[Power]),FILTER (Plants,Plants[StartDate]<= MAX ( Dates[Date] )&& OR (Plants[EndDate]>= MIN ( Dates[Date] ),Plants[EndDate]= BLANK ()))))
Jihwan_Kim
Super User
5 years agoHi, Anonymous
Please check the below picture and the sample pbix file's link down below.
Power Measure =
IF (
ISFILTERED ( Dates ),
CALCULATE (
SUMX (
Plants,
Plants[Power]
),
FILTER (
Plants,
Plants[StartDate]
<= MAX ( Dates[Date] )
&& OR (
Plants[EndDate]
>= MIN ( Dates[Date] ),
Plants[EndDate]
= BLANK ()
)
)
)
)