This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi PBI Community,
I have a data table that contains the following row items :
I want to populate the row items as below :
Net Sales is a calculated row which is calculated as Sales - Adjustments,
Gross Profit is calculated as Net Sales - Cost of Goods
and Operating Income is calculated as Gross Profit - Admin Expenses.
Any help on this is appreciated.
@amitchandak @Ashish_Mathur @Ritaf1983 @parry2k @MFelix
Solved! Go to Solution.
Hi,@DeepakJha23 .
I am glad to help you.
According to your description, you want to realise the Row level calculation.
Here is my test.
You can create the following DAX function to do what you want.
Net Sales = 'Table'[Sales]-'Table'[Adjustments]
Gross Profit = 'Table'[Net Sales]-'Table'[Cost of Goods]
Operating Income = 'Table'[Gross Profit]-'Table'[Admin Expenses]
You can then use these calculated columns after that.
However, if you want to implement calculations between rows for each object property, you can use transposition, where you need to redefine new columns based on the previous column names to display the column names of the table before transposition. But this will invalidate the previously created calculated columns.
You could try to use the calculate function to calculate the data by limiting the scope of the calculation (but here, after transposition, the data from the previous different columns are now grouped into one column based on the object).
Here is the data after transposition.
In my opinion ,this is not good for the user to manage the data, so I recommend you to use calculated columns for your data calculations.
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,@DeepakJha23 .
I am glad to help you.
According to your description, you want to realise the Row level calculation.
Here is my test.
You can create the following DAX function to do what you want.
Net Sales = 'Table'[Sales]-'Table'[Adjustments]
Gross Profit = 'Table'[Net Sales]-'Table'[Cost of Goods]
Operating Income = 'Table'[Gross Profit]-'Table'[Admin Expenses]
You can then use these calculated columns after that.
However, if you want to implement calculations between rows for each object property, you can use transposition, where you need to redefine new columns based on the previous column names to display the column names of the table before transposition. But this will invalidate the previously created calculated columns.
You could try to use the calculate function to calculate the data by limiting the scope of the calculation (but here, after transposition, the data from the previous different columns are now grouped into one column based on the object).
Here is the data after transposition.
In my opinion ,this is not good for the user to manage the data, so I recommend you to use calculated columns for your data calculations.
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 26 | |
| 23 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 45 | |
| 28 | |
| 24 | |
| 22 |