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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
ZXXX
Regular Visitor

Specific report, sum of every two rows need to be visable in next column

Hi, 

This i s specific report about water that is save every day 

I need to have info in next column how much water was save from previous day, and how much comes inn, so in fact it is total of every two rows and result need to be visable for every day, please help how to prepare dax for this.

It is quite easy in Excel

 

ZXXX_0-1658051300545.png

 

Please advice how to prepare measure for new table

ZXXX_1-1658051479469.png

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @ZXXX 

 

Please try the following methods.

Column =
4802.5 - 22.5
    + CALCULATE (
        SUM ( 'Table'[total of rain] ),
        FILTER ( 'Table', [DATE] <= EARLIER ( 'Table'[DATE] ) )
    )

vzhangti_0-1658310817765.png

(4802.5 - 22.5) represents the initial value.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

10 REPLIES 10
ZXXX
Regular Visitor

Maybe it will be more visable

ZXXX_0-1658085670827.png

 

ZXXX
Regular Visitor

DATArain (mm)water from rooftotal of rainneedused waterTotal of water in container
12.05.20190,122,522,5 04802,5
13.05.20190,7157,5157,5 04960
14.05.20198,11822,51822,5006782,5
15.05.201915,635103217,5 010000
16.05.20197,91777,50 010000
17.05.20197,817550 010000
v-zhangti
Community Support
Community Support

Hi, @ZXXX 

 

Please try the following methods.

Column =
4802.5 - 22.5
    + CALCULATE (
        SUM ( 'Table'[total of rain] ),
        FILTER ( 'Table', [DATE] <= EARLIER ( 'Table'[DATE] ) )
    )

vzhangti_0-1658310817765.png

(4802.5 - 22.5) represents the initial value.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

HI @ZXXX 
I could understand this set of data 

1.png

But the latest data is not clear at all. How did you calculate the first value ( 4802,5 )?!

The same calculations but from previous days.

The final what I'm trying to do is chartof How much water is in container evey day.

For this I need to add water from previous day, add new one and take off water that was used, taking off is easy.

Thanks for help

ZXXX_1-1658125543738.png

 

ZXXX
Regular Visitor

Result is water in container

tamerj1
Super User
Super User

Hi @ZXXX 

please provide some sample data along with the expected results. 

Like I show in Excel screenshoot, total of previous day + number of water that is new for today. Result is G column but it is also part of calculation.

Thanks

@ZXXX 
Please provide the same copy/paste so we can use to generate sample file. thank you

ZXXX
Regular Visitor

*measure for new column

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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