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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AllanBerces
Helper IV
Helper IV

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
v-yiruan-msft
Community Support
Community Support

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

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

Hi @v-yiruan-msft 

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

 

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

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

Hi @v-yiruan-msft 

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 @v-yiruan-msft 

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

AllanBerces_0-1711712274219.png

Thank you in advance

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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