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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
AllanBerces
Post Prodigy
Post Prodigy

Display Sum in each Row

Hi good day,

pls need assistance, can anyone correct my calculated column. I have Table 1 where i get the value and display the value in Table 2. they have common column under Category and both connected to Date Table. 

Current filter output:

REMAINING_HRS = CALCULATE(
                    [Sum of Remaining],
                    FILTER(
                        ALL(BRUNEI_WTI_PROGRESS_YRLY_sql[Task No./Phase]),
                        BRUNEI_WTI_PROGRESS_YRLY_sql[Task No./Phase] = "PRECPRA;NC000172" || BRUNEI_WTI_PROGRESS_YRLY_sql[Task No./Phase]= "PRECPRA;NC000135"),
                    FILTER(
                        ALL(BRUNEI_WTI_PROGRESS_YRLY_sql[Main Cat.]),
                         BRUNEI_WTI_PROGRESS_YRLY_sql[Main Cat.]= "Q")
 
The sum i correct combine 602 and 119 = 721
AllanBerces_0-1711549822105.png
 
What i want is:
AllanBerces_1-1711549931221.png

 

Thank you


)

 

5 REPLIES 5
Anonymous
Not applicable

Hi @AllanBerces ,

Please update the formula of calculated column as below and check if that is what you want.

REMAINING_HRS =
CALCULATE (
    [Sum of Remaining],
    FILTER (
        ALLEXCEPT (
            BRUNEI_WTI_PROGRESS_YRLY_sql,
            BRUNEI_WTI_PROGRESS_YRLY_sql[Task No./Phase]
        ),
        BRUNEI_WTI_PROGRESS_YRLY_sql[Task No./Phase]
            IN { "PRECPRA;NC000172", "PRECPRA;NC000135" }
                && BRUNEI_WTI_PROGRESS_YRLY_sql[Main Cat.] = "Q"
    )
)

Best Regards

Hi @Anonymous 

I used below measure working ok, but when i put in calculated column no value displyed.

 

CALCULATE(
    [Sum of Remaining],
                KEEPFILTERS(BRUNEI_WTI_PROGRESS_YRLY_sql[Sub-Task Phase] IN { "02 CW-AY PRE DRILL FL", "2nd PRE CPRA" } && BRUNEI_WTI_PROGRESS_YRLY_sql[Main Cat.] = "Q"))
AllanBerces_0-1711722547251.png

How to do it in calculated column?

 

Thank you

 
Anonymous
Not applicable

Hi @AllanBerces ,

Could you please provide the formula of [Sum of Remaining] and some fake data in the table 'BRUNEI_WTI_PROGRESS_YRLY_sql'? It would be helpful to get the solution. Thank you.

 

Best Regards

Hi @Anonymous 

Good afternoon

Sum of Remaining = SUM(BRUNEI_WTI_PROGRESS_YRLY_sql[Remaining hours])
and table below.
AllanBerces_0-1712129482306.png
Everyday the data will override by the current date data. below my data model.
AllanBerces_1-1712130682544.png

Thank you in advance

 

Hi @Anonymous 

Im getting error when i try the calculated column from above.

AllanBerces_0-1711712274219.png

Thank you in advance

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.