The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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).
@Anonymous , 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 : https://youtu.be/C9K8uVfthUU
@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
User | Count |
---|---|
65 | |
61 | |
60 | |
53 | |
30 |
User | Count |
---|---|
180 | |
88 | |
71 | |
48 | |
46 |