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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi, I'm trying to calculate the percentage of one asset in a subgroup.
I have my table with all assets (Stocks, REITs, Bonds, Crypto), I calculated the percentage of one investment in the total, but I want to know the portion of GOOG just when the type is stocks.
% Current = 'Transfer'[Current Price]/sum('Transfer'[Current Price])
Total = SUM('Transfer'[Current price])
Total Stocks = CALCULATE(SUM('Transfer'[Current Price]),'Trasfer'[Type]="Stocks")
% Stocks = (DIVIDE([Total Stocks],[Total]))
Solved! Go to Solution.
@Anonymous , if you want for sun group then
% Stocks = (DIVIDE([Total Stocks],calculate([Total], filter(all(Table), Table[Sub Group] = max(Table[Sub Group]) ) ))
Percent of Total and Percent of SubTotal https://www.youtube.com/watch?v=6jTildcV2ho
@Anonymous , if you want for sun group then
% Stocks = (DIVIDE([Total Stocks],calculate([Total], filter(all(Table), Table[Sub Group] = max(Table[Sub Group]) ) ))
Percent of Total and Percent of SubTotal https://www.youtube.com/watch?v=6jTildcV2ho