cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Frequent Visitor

I want to add the value cloumns in my table .Not sure how to do it ,can anyone help me out on this

As per the below screenshot want  to add the GROSS AMT + DISCOUNT_AMT AND GROSS AMT SUP

i.e  50,302 + (-1064) + (-2100)

1 ACCEPTED SOLUTION
Microsoft Employee

Hi @burna,

Based on my test, you could refer to below steps:

Sample data:

Create a calculated column:

`Column = CALCULATE(SUM(TableA[DISCOUNT_AMT])+CALCULATE(SUM(TableA[GROSS_AMT])+CALCULATE(SUM(TableB[GROSS AMT SUP]))))`

Also, you could create a measure:

`Measure = CALCULATE(SUM(TableA[DISCOUNT_AMT])+CALCULATE(SUM(TableA[GROSS_AMT])+CALCULATE(SUM(TableB[GROSS AMT SUP]))))`

Result:

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 REPLIES 3
Microsoft Employee

Hi @burna,

Based on my test, you could refer to below steps:

Sample data:

Create a calculated column:

`Column = CALCULATE(SUM(TableA[DISCOUNT_AMT])+CALCULATE(SUM(TableA[GROSS_AMT])+CALCULATE(SUM(TableB[GROSS AMT SUP]))))`

Also, you could create a measure:

`Measure = CALCULATE(SUM(TableA[DISCOUNT_AMT])+CALCULATE(SUM(TableA[GROSS_AMT])+CALCULATE(SUM(TableB[GROSS AMT SUP]))))`

Result:

Regards,

Daniel He

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

Create a new measure that includes those three fields. It would be something like =SUM(Table[GROSS_AMT]) + SUM(Table[DISCOUNT_AMT]) + SUM(Table[GROSS AMT SUP]). When added to the matrix, the measure would show the sum of the three column values repeating for each row.

Frequent Visitor

The problem is GROSS_AMT and DISCOUNT_AMT are from table A GROSS_AMT_SUP is from table B,but they are related to each other by one to many relation and ,i want to represent the total value in the same matrix table

Announcements

#### Power BI Monthly Update - July 2024

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

Top Solution Authors
Top Kudoed Authors