Forum Discussion
lastnn30
3 years agoPost Patron
remove decimals
Hi I have the table below, I select "show values as %" and now I see all these values in percentages. I wonder if I want to get ride of these decimals for example 70.32 % to 70% or 71% Is...
- Anonymous3 years ago
Hi lastnn30 ,
There is no direct option to set the decimal places, you can follow the steps below to get it. Please find the details in the attachment.
1. Create a measure as below to get the percentage
% Total = VAR _pertotal = SUM ( 'SalesTable'[Total] ) VAR _alltotals = CALCULATE ( SUM ( 'SalesTable'[Total] ), ALLSELECTED ( 'SalesTable' ) ) RETURN DIVIDE ( _pertotal, _alltotals )2. Set the data type format of measure as Percentage and decimal places as 0
Best Regards
Anonymous
3 years agoNot applicable
Hi lastnn30 ,
There is no direct option to set the decimal places, you can follow the steps below to get it. Please find the details in the attachment.
1. Create a measure as below to get the percentage
% Total =
VAR _pertotal =
SUM ( 'SalesTable'[Total] )
VAR _alltotals =
CALCULATE ( SUM ( 'SalesTable'[Total] ), ALLSELECTED ( 'SalesTable' ) )
RETURN
DIVIDE ( _pertotal, _alltotals )
2. Set the data type format of measure as Percentage and decimal places as 0
Best Regards