Join our Community in its new Home - The Datorama Trailblazer Community Group!
It's been an amazing 3 years coming together in this forum to collaborate, innovate, support, and inspire each other about our shared usage of Datorama. While this is not quite a goodbye, we are excited to announce that we are getting a fresh start in our new home within the Salesforce Trailblazer Community. We have a ton of fun new content planned and you may even see the revival of some of our most popular posts from the past few years.
We’ll be keeping this group around for a bit for you to peruse, but as of November 15, we will no longer be allowing new posts or comments. Be sure to join our new group at https://www.salesforce.com/success-datorama to keep the conversation going.
We can’t wait to see you there!
It's been an amazing 3 years coming together in this forum to collaborate, innovate, support, and inspire each other about our shared usage of Datorama. While this is not quite a goodbye, we are excited to announce that we are getting a fresh start in our new home within the Salesforce Trailblazer Community. We have a ton of fun new content planned and you may even see the revival of some of our most popular posts from the past few years.
We’ll be keeping this group around for a bit for you to peruse, but as of November 15, we will no longer be allowing new posts or comments. Be sure to join our new group at https://www.salesforce.com/success-datorama to keep the conversation going.
We can’t wait to see you there!
% of Total by dimension


HI,
I have a measure (Configurations) which is split between three dimensions (a, b, c)
I'm looking to create a calculated measure where I can display the % of A versus the total
So something like SUM(Configurations, Dimension=A) / SUM[Configurations]
I can't get it to work, anyone know how to do this?
I have a measure (Configurations) which is split between three dimensions (a, b, c)
I'm looking to create a calculated measure where I can display the % of A versus the total
So something like SUM(Configurations, Dimension=A) / SUM[Configurations]
I can't get it to work, anyone know how to do this?
Comments
Nevermind...
This feature is rarely noticed, and very specific to the table widget.
You can create a calculated measurement that will do the calculation across a whole dimension.
First you need to set some advanced settings (see below). The 'Month' granularity is key as this will set the data aggregation correctly.
You will then need to set the Aggregation Function to 'Sum' and then enter the formula as seen below.
NOTE: You can change both the measurement and dimension to one you need. The one below will split Visits by Device Type.
Some Examples
Visits by Device
SUM([Visits],[[Device_Category],[Month]])/SUM([Visits],[[Month]])
Impressions by Campaign Name
SUM([Impressions],[[Campaign_Name],[Month]])/SUM([Impressions],[[Month]])
I believe you can set the data aggregation to something such as day, week, or year but I have not tested these directly myself. If you do make the change, you would need to change all references throughout the Calculated Measurement (Advanced and Formula).
That option is specific to the table widget. You can look at the widget setting and check the options link marked below:
Here you can see the "Share of Total" option. Double click on the column/metric , you will see a dropdown - "show instead" will give you the % share of total instead of actual value.
I hope this helps!