Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I am trying to recreate the below measure as a calculated column, so that I could have it used as a slider.
US Equity = (SUM('Portfolio Allocations'[USMV]) / SUM('Portfolio Allocations'[Value]) ) -(SUM('Portfolio Allocations'[USWEIGHT]) / 100)I have values (USMV, Value, USWEIGHT) for each "account number" and each "day"(Date)
How do I re-write this for a calculated column?
Any help would be appreciated.
Thanks
Solved! Go to Solution.
@Anonymous Did you tried this ? Calculated Columns will perform the calculations at each row level and the aggregate functions can't be used.
US Equity = ('Portfolio Allocations'[USMV] / 'Portfolio Allocations'[Value]) - ('Portfolio Allocations'[USWEIGHT] / 100)
Proud to be a PBI Community Champion
Hi @Anonymous ,
If I'm not mistaken, you should be able to remove the aggregation from each column, like so:
US Equity = ('Portfolio Allocations'[USMV] / 'Portfolio Allocations'[Value] ) -('Portfolio Allocations'[USWEIGHT] / 100)This will give you the Equity for each row in the data table.
Hi @Anonymous ,
If I'm not mistaken, you should be able to remove the aggregation from each column, like so:
US Equity = ('Portfolio Allocations'[USMV] / 'Portfolio Allocations'[Value] ) -('Portfolio Allocations'[USWEIGHT] / 100)This will give you the Equity for each row in the data table.
@Anonymous Did you tried this ? Calculated Columns will perform the calculations at each row level and the aggregate functions can't be used.
US Equity = ('Portfolio Allocations'[USMV] / 'Portfolio Allocations'[Value]) - ('Portfolio Allocations'[USWEIGHT] / 100)
Proud to be a PBI Community Champion
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |