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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
jrolson113
Regular Visitor

Column Addition/Subtraction

Hi All,

 

I am looking to add/subtract columns from a singular matrix; and for what I think should be something easy to do, it is proving difficult.

jrolson113_0-1681755371245.png

To help explain my thinking, I would like to take "1- Opening" and add "2 - Total Credits" then subtract "3 - Total Debits" to give me the "4 - Closing" value. Essentially, I would like this to serve as a check to make sure that all my information is pulling in correctly.

 

Also, here are the tables I am using to get my information:

jrolson113_1-1681755526901.png

Absent the "Category 1" it is all coming from the same table.

1 REPLY 1
PabloDeheza
Solution Sage
Solution Sage

Hi there!

You can try something like

 

Measure =
SUMX (
    SUMMARIZE (
        'Summary',
        'Summary'[Column1],
        'Summary'[Column2],
        'Account Table'[Category 1]
    ),
    [1- Opening] + [2 - Total Credits] - [3 - Total Debits]
)

 

Let me know if that helps!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.