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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
scorpi73
Frequent Visitor

cumulate Measure Values Between two Dates

Hello there,

the cu.m-Measure should cumulate the Soll Measure Values between the Blank IST Values:

scorpi73_0-1650556619753.png
IF the IST isnt Blank then it should pass the Soll Value to cu.m

Bonus Question: how could i change the condition of the cu.m Measure, if i would cumulate after the second day of Blank IST Values.  like this :

scorpi73_1-1650557101049.png


https://www.dropbox.com/s/93qvszfrur161kl/sample_Dates%20between.pbix?dl=0

 

Thank You guys:)

1 ACCEPTED SOLUTION
ribisht17
Super User
Super User

@scorpi73  You can download the solution here, I changed IST to Column 

 

https://drive.google.com/drive/folders/1s_9sdFOqSK0EwBLOU4hFOeDXjyGagczH?usp=sharing

 

Mark my post as a solution if it helped you| Gentlemen & Ladies|Munde and Kudis| I like your Kudos!! !!
My You Tube Channel !! Connect on Linkedin || Power BI for Tableau Users 

View solution in original post

5 REPLIES 5
ribisht17
Super User
Super User

Did it help you?

 

Regards,

Ritesh

ribisht17
Super User
Super User

@scorpi73  You can download the solution here, I changed IST to Column 

 

https://drive.google.com/drive/folders/1s_9sdFOqSK0EwBLOU4hFOeDXjyGagczH?usp=sharing

 

Mark my post as a solution if it helped you| Gentlemen & Ladies|Munde and Kudis| I like your Kudos!! !!
My You Tube Channel !! Connect on Linkedin || Power BI for Tableau Users 

Daryl-Lynch-Bzy
Resident Rockstar
Resident Rockstar

@scorpi73 - I would suggest watching the following video by Alberto.  Implementing running total from arbitrary dates in DAX - Unplugged #34 - YouTube  - It will help you understand the filter context for the running total, and how you can filter for the blank dates.

ribisht17
Super User
Super User

@scorpi73 ,

 

Step 1: 

Cumulative Total =
CALCULATE (
SUM(**bleep**[Soll]),
FILTER (
ALL( **bleep** ),
**bleep**[Date] <= MAX ( **bleep**[Date]) && **bleep**[IST] = MAX(**bleep**[IST])
)
)
 
2. 
Condition = IF(ISBLANK(min(**bleep**[IST]) ),[Cumulative Total],sum(**bleep**[Soll]))
 
3. ribisht17_0-1650562673485.png

 

When you say ,Measure should cumulate the Soll Measure Values between the Blank IST Values:

 

Should not it start with 87 ?

 

Regards,

Ritesh

Hey Ritesh, thank you for your effort.
the cu.m is a measure not a Table. i did not manage to apply you Measure to my File.

i attached a PBIX File, to show my Problem

https://www.dropbox.com/s/93qvszfrur161kl/sample_Dates%20between.pbix?dl=0

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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