# New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
Qlik® Product Spotlight: Discover what’s possible. Get more from our products.
See for yourself. Register today.
Not applicable

## Doubt in Straight table in Qlik sense

Hi,

I want to make a straight table for showing the region wise profit percentage of sample superstore dataset in Qlik Sense but i am unable to do that so can you please suggest me what code should i write to calculate the profit percentage.

Tags (1)
20 Replies
Not applicable

## Re: Doubt in Straight table in Qlik sense

Hi,

Use below calculated column,

% of Sales Total:

=sum(Sales)/sum(Total Sales)

Not applicable

## Re: Doubt in Straight table in Qlik sense

You need to be a bit more specific an let us know what exactly you are dealing with

Not applicable

## Re: Doubt in Straight table in Qlik sense

Hi Vineeth,

Actually I want to calculate Region Wise Profit percentage in Sample superstore dataset.

Not applicable

## Re: Doubt in Straight table in Qlik sense

Hi Vineeth,

Actually I want to calculate Region Wise Profit percentage in Sample superstore dataset.

Not applicable

## Re: Doubt in Straight table in Qlik sense

Sorry but i don't see what you are working with, can you a small sample in excel and also what the expected output should look like

Not applicable

## Re: Doubt in Straight table in Qlik sense

I have 4 regions in my dataset and profit percentage in that region. So i want to calculate the profit percentage respective to the regions in straight table. Like in Pie chart % has automatically calculated.

Not applicable

## Re: Doubt in Straight table in Qlik sense

Hi,

Have tried my attached solution? it should work for your case.

you just need to create new calculated column,

=sum(Sales)/sum(Total Sales)

Tks, Deva

Not applicable

## Re: Doubt in Straight table in Qlik sense

Thank You Devarasu but how can we put % sign at the end and also can we round the % to only a single digit after the decimal.

Not applicable

## Re: Doubt in Straight table in Qlik sense

Hi,

It's there under table property (just look at measure column properties. Hope this helps.

https://help.qlik.com/en-US/sense/3.1/Subsystems/Hub/Content/Visualizations/Table/table-properties-p...

Community Browser