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
lisa01bh
New Member

Need to Add a Row Based on different field from Same Column

I am new to Power BI and I am trying to  add new row Gross profit just based on cost and sales and get the results below. Any help is appreciated. Thanks

Gross profit.JPG

1 REPLY 1
v-huizhn-msft
Employee
Employee

Hi @lisa01bh,

In Power BI, the basic cell is a column. We can't add a row in a table. We only can add a column. For your scenario, you can create a measure and a card visual to display the result.

Gross profit =
CALCULATE ( SUM ( Table[Budget] ), FILTER ( Table, Table[Category] = "Sales" ) )
    - CALCULATE (
        SUM ( Table[Budget] ),
        FILTER ( Table, Table[Category] = "Income" )
    )


Best Regards,
Angelia

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.