Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

p &L

I have following data in an Excel sheet

DescriptionDeptClassMonth Actual Budget
SalesA11       1,000        1,500
SalesB22       1,000        1,500
SalesC13       2,000        3,000
SalesD14       3,000        4,500
SalesE35       4,000        6,000
SalesF46       5,000        7,500
SalesA13       1,000        1,500
SalesB24       1,000        1,500
SalesC14       2,000        3,000
SalesE13       4,000        6,000
SalesF13       5,000        7,500
PURCHASEA11          600           900
PURCHASEB22       4,000        6,000
PURCHASEC13       1,000        1,500
PURCHASED14       1,500        2,250
PURCHASEE35       2,400        3,600
PURCHASEF46       3,100        4,650
PURCHASEA13          800        1,200
PURCHASEB24          750        1,125
PURCHASEC14       3,000        4,500
PURCHASEE13       2,000        3,000
PURCHASEF13       1,000        1,500
Staff ExpA11          600           900
Staff ExpB22       1,000        1,500
Staff ExpC13          100           150
Staff ExpD14          400           600
Staff ExpE35          300           450
Staff ExpF46          100           150
Staff ExpA13          800        1,200
Staff ExpB24          750        1,125
Staff ExpC14          250           375
Staff ExpE13          100           150
Staff ExpF13          500           750
Other ExpA11          250           375
Other ExpB22          300           450
Other ExpC13          300           450
Other ExpD14          300           450
Other ExpE35          300           450
Other ExpF46          300           450
Other ExpA13          300           450
Other ExpB24          300           450
Other ExpC14          300           450
Other ExpE13          400             -  
Other ExpF13          350           525

Based on the above data I want to design the following output report in a QV document. Pls help me with a sample data model and report

Thanks in advance

P & L Account
DescriptionActualBudgetVarience
Sales      29,000        43,500    (14,500)
Less Purchase      20,150        30,225    (10,075)
Gross Profit        8,850         13,275      (4,425)
Staff Exp        4,900          8,175      (3,275)
Other Exp        3,400          4,500      (1,100)
Total Exp        8,300         12,675      (4,375)
Profit          550             600           (50)
4 Replies
jerem1234
Specialist II
Specialist II

Load the data into Qlikview, then use a straight table. The dimension would be Description and it will have 3 expressions:

sum(Actual)

sum(Budget)

sum(Budget)-sum(Actual)

Hope this helps!

upaliwije
Creator II
Creator II
Author

Thanks

It is not working. I m unable to calculate the Gross Profit, Total Expenses and  Profit

steve_crosby
Partner - Contributor II
Partner - Contributor II

Check out the following from the Resource Library

How to Create a Profit and Loss Statement in QlikView

PrashantSangle

Hi,

Use Description as dimension

Write Expression for Gross Profit , Total Expenses and Proft.

1) Gross Profit

sum({<Description={'Sales'}>}Actual)-sum({<Description={'Purchase'}>}Actual)

2)Total Expenses:

sum({<Description={'Staff Exp'}>}Actual)-sum({<Description={'Other Exp'}>}Actual)

and 3)Profit

(sum({<Description={'Sales'}>}Actual)-sum({<Description={'Purchase'}>}Actual))

-

(sum({<Description={'Staff Exp'}>}Actual)-sum({<Description={'Other Exp'}>}Actual))

It is better for you if you calculated all fields at script level instead of trying in Chart

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂