Skip to main content
Question

Hello,I would like to calculate a market share by country in a simple table.Problem :i have column 1 : Country, column 2: sum(invoice), column 3: market share by country but i it take the sum just for the country and not the sum of all of it

  • March 31, 2022
  • 3 replies
  • 1 view

Hello, I would like to calculate a market share by country in a simple table. Problem : i have column 1 : Country, column 2: sum(invoice), column 3: market share by country but i it take the sum just for the country and not the sum of all of it

3 replies

Not sure what you ask, but....

 

In a OLAP table:

 

Country as Dimension

 

KPI= SUM(INVOICE)/GLOBAL(SUM(INVOICE)) as a percent

 

That will calculate for each country the percent of market share


  • Author
  • Level 4
  • 7 replies
  • March 31, 2022

Not sure what you ask, but....

 

In a OLAP table:

 

Country as Dimension

 

KPI= SUM(INVOICE)/GLOBAL(SUM(INVOICE)) as a percent

 

That will calculate for each country the percent of market share

oh ok perfect. I didnt notice the function GLOBAL...

Thanks you


A pleasure! 👍