Skip to main content
Showing results for 
Search instead 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

Want to get help on calculating a metric in the same column

Dear All,


I have the source data in an Excel file, with one single column called "Category" having multiple metrics. I am having issue in calculating a metric based on the 2 metrics that are in the same "Category" column. Could you please guide me in achieving this as both of them are in the same column. My calculation requirement is ((Required Capacity - Actual Capacity)/Required Capacity).


DAX Calc-1.png

Super User
Super User

@sunilbsrv2k-1 , Try measure like.


M1= calculate(Sum(Table[Value]) , Table[Category] = "Required Capacity")
m2 = calculate(Sum(Table[Value]) , Table[Category] = "Actual Capacity")

M3= divide([M1] -[M2], [M2])



In case you want to add a custom total


Power BI How to get the P&L with custom total :

@amitchandak , Thank you so much for your suggestion. I have now created 3 Measures for Actual Capacity, Required Capacity and Division calculation.

But, when I try to insert them in "Rows" field of Matrix visual it is not taking.

When I insert them in Values it is showing as columns; but I want them to be shown as rows and dates should be appearing in columns.


Please advise. Thanks

Helpful resources

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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


Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors