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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.