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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
railtons
Frequent Visitor

Questions about creating a column with projected values according to the last remaining work to be d

Hello team, I'm just getting started with Power BI and I have a question that seems simple, but I can't figure it out.

I have a table with the following columns:

1 - Estimated remaining work: where I record my last estimated effort;
2 - Capacity: My team's capacity to perform in each iteration;
3 - Projected Estimated remaining work: Based on my last estimated effort, according to my capabilities, in which iteration this estimate would reach zero.

railtons_0-1707929591281.pngrailtons_1-1707929606988.png

 

railtons_2-1707929627255.png

 


My question is:

I would like to create a column in DAX that exactly represents column 3.

 

 

 

Thanks

 


Railton

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

Hi @railtons ,

Here some steps that I want to share, you can check them if they suitable for your requirement.

Here is my test data:

vheqmsft_0-1707962779014.png

1.Open power query and add a index column

vheqmsft_1-1707962856863.png

2.Create a calculate column

Projected Estimated remaining work = 
VAR _a = 
CALCULATE(
    SUM('Table'[Capacity]),
    FILTER('Table','Table'[Index] <= EARLIER ( 'Table'[Index] ) )
)
RETURN
CALCULATE(
    MAX('Table'[Estimated remaing work]),
    FILTER(
        'Table',
        'Table'[Index] = 1
    )
)-_a

Final output

vheqmsft_2-1707962933101.png

 

Best regards,

Albert He

 

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

2 REPLIES 2
railtons
Frequent Visitor

Hi @v-heq-msft 
Thanks a lot.
It works!!!!!!

v-heq-msft
Community Support
Community Support

Hi @railtons ,

Here some steps that I want to share, you can check them if they suitable for your requirement.

Here is my test data:

vheqmsft_0-1707962779014.png

1.Open power query and add a index column

vheqmsft_1-1707962856863.png

2.Create a calculate column

Projected Estimated remaining work = 
VAR _a = 
CALCULATE(
    SUM('Table'[Capacity]),
    FILTER('Table','Table'[Index] <= EARLIER ( 'Table'[Index] ) )
)
RETURN
CALCULATE(
    MAX('Table'[Estimated remaing work]),
    FILTER(
        'Table',
        'Table'[Index] = 1
    )
)-_a

Final output

vheqmsft_2-1707962933101.png

 

Best regards,

Albert He

 

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

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.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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