Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Vigneshkris
Frequent Visitor

% of total not working when using % of total in slider.

Hi All,

Can you please help me in solving the below mentioned issue  

 

I have the table with the following details.      
Investor_NameCompanyInvest TypeQuantityCost PriceMarket PriceTotal_CostMarket Value% of total ( Calculated field)
AAAAXXXXLiquid100121002001%
AAAAYYYYMF200234006002%
AAAAZZZZEquity3003490012005%
AAAATTTTEquity40046160024009%
AAAASSSSEquity500592500450015%
BBBBXXXXLiquid506123006002%
BBBBYYYYMF10071370013004%
BBBBZZZZEquity150814120021007%
BBBBTTTTEquity2009151800300011%
BBBBSSSSEquity25010162500400015%
CCCCXXXXLiquid2511172754252%
CCCCYYYYMF5012186009004%
CCCCZZZZEquity75131997514256%
CCCCTTTTEquity1001420140020008%
CCCCSSSSEquity12515211875262511%
      17125  
         
In my report I am trying to pull columns Investor Name , Invest Type , Quantity , Cost Price , Market Price , Tota lCost , Market Value
         
Investor_NameInvest TypeSum of QuantityTotal_CostMarket Value% of Total   
AAAAEquity12005000810029%   
AAAALiquid1001002001%   
AAAAMF2004006002%   
BBBBEquity6005500910032%   
BBBBLiquid503006002%   
BBBBMF10070013004%   
CCCCEquity3004250605025%   
CCCCLiquid252754252%   
CCCCMF506009004%   
   17125     
If I use the Sum of Profit Margin ( created a new column )as Slider and filter for % of Total > 10 %  is not getting displayed properly as shown below
         
         
Investor_NameInvest TypeSum of QuantitySum of Total_CostSum of Market Value% of Total   
AAAAEquity12005000810034%   
BBBBEquity6005500910037%   
CCCCEquity3004250605029%   
   14750     
         
How ever  What I am looking for is . The reason is every time I use a slider the % of total is recalculated based on the filter and I just want the calculations to be static.
         
Investor_NameInvest TypeSum of QuantitySum of Total_CostSum of Market Value% of Total   
AAAAEquity12005000810029%   
BBBBEquity6005500910032%   
CCCCEquity3004250605025%   
1 ACCEPTED SOLUTION

Hi @Vigneshkris,

 

That's an original column. So there isn't a formula exists. And "Show Value as - > Percentage of Grand Total" is a built-in function. No formula is needed. If you want to know, it could be like below. 

Percentage = divide(sum('table'[% of Total]), calculate(sum('table'[% of Total]), all('table')), 0)

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Vigneshkris,

 

Actually, we need to filter the result of "sum of % of Total" in your scenario. Since a measure can't be used in a slicer, there could be two workarounds.

1. Use the Filter Level filter. 

of_total_not_working_when_using

2. Add a new column like below.

Column =
CALCULATE (
    SUM ( Table1[% of total ( Calculated field)] ),
    ALLEXCEPT ( Table1, Table1[Investor_Name], Table1[Invest Type] )
)

of_total_not_working_when_using2

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks Dale for the response. One Quick question : what will be formula to be used for calculating % of Total (Calculated Field). 

I used the default option Show Value as - > Percentage of Grand Total option available. However I am not able to view the formula used. 

 

Desc

Hi @Vigneshkris,

 

That's an original column. So there isn't a formula exists. And "Show Value as - > Percentage of Grand Total" is a built-in function. No formula is needed. If you want to know, it could be like below. 

Percentage = divide(sum('table'[% of Total]), calculate(sum('table'[% of Total]), all('table')), 0)

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Dale , Sorry to bug you again. 

 

In this formula provided , 

Column =
CALCULATE (
    SUM ( Table1[% of total ( Calculated field)] ),
    ALLEXCEPT ( Table1, Table1[Investor_Name], Table1[Invest Type] )
)

 I am not sure how to write this formula. Is % of total a function  ? 

SUM ( Table1[% of total ( Calculated field)] )

 

Hi @Vigneshkris,

 

That's a column name. I copied from your first post.

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Vigneshkris
Frequent Visitor

Any pointers or link should be of great help. Thanks

Helpful resources

Announcements
ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.