Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 17 | |
| 10 | |
| 7 | |
| 6 |