Forum Discussion
Display Percent rather than Count
- 9 years ago
Hi enterprised1,
We should write measure to show the correct percentage. Please follow the steps below to see if it would work:
- Under the data View, create a measure to calculate the count of Amount=800;
- Count800 = calculate(count(‘Table’[ID]), ‘Table’[Amount]=800)
- Create another measure to calculate the percentage:
- Precent = Divide([Count800],COUNT(‘Table’[ID]))
- Under the report View, in the Fields, click Precent, then click on % to format it. Select Card Visual and put the Precent into the values, it should show the correct percentage:
Using the quick calc here would always show 100%, as the total count is also filtered, but not the original total.
If any further help needed, please feel free to post back.
Regards
Hi enterprised1,
We should write measure to show the correct percentage. Please follow the steps below to see if it would work:
- Under the data View, create a measure to calculate the count of Amount=800;
- Count800 = calculate(count(‘Table’[ID]), ‘Table’[Amount]=800)
- Create another measure to calculate the percentage:
- Precent = Divide([Count800],COUNT(‘Table’[ID]))
- Under the report View, in the Fields, click Precent, then click on % to format it. Select Card Visual and put the Precent into the values, it should show the correct percentage:
Using the quick calc here would always show 100%, as the total count is also filtered, but not the original total.
If any further help needed, please feel free to post back.
Regards
I have specified the column is a percent in the data table but it is showing as a decimal in the card. And under modeling the formatting options are grayed out, do you know why that would be?