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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
PrestaPower
Frequent Visitor

SUM/Substract

Hey, so here is my issue. I have a table with for each year the client rejected after a certain step. Knowing that the total application is given on the last column, i would like to have in remaining the amount remaining after each step. But for now I just achieve to substract the total with the one rejected for one step, where for example, for step 2 of 2017 i expect the remaining to be equal to :  Total - rejcted at step 1 - rejected at step2

cohortquestionforum.PNG

 And so on for each step, knowing that it as to be done separatly for each year.

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

Hi PrestaPower,

 

Please follow steps below which may meet your requirement:

1. Click Edit Queries-> Add Column-> Index Column 

2. Create a calculate column running total using DAX formula below:

Running Total =
CALCULATE (
    SUM ( Table1[Rejected after step] ),
    FILTER (
        Table1,
        Table1[Index] <= EARLIER ( Table1[Index] )
            && Table1[Year] = EARLIER ( Table1[Year] )
    )
)

3. Achieve the remaining after each step

Remaining after step = MAX(Table1[Total Applications]) + MAX(Table1[Running Total])

Capture.PNG 

 

Regards,

Jimmy Tao

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
Community Support

Hi PrestaPower,

 

Please follow steps below which may meet your requirement:

1. Click Edit Queries-> Add Column-> Index Column 

2. Create a calculate column running total using DAX formula below:

Running Total =
CALCULATE (
    SUM ( Table1[Rejected after step] ),
    FILTER (
        Table1,
        Table1[Index] <= EARLIER ( Table1[Index] )
            && Table1[Year] = EARLIER ( Table1[Year] )
    )
)

3. Achieve the remaining after each step

Remaining after step = MAX(Table1[Total Applications]) + MAX(Table1[Running Total])

Capture.PNG 

 

Regards,

Jimmy Tao

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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