Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
marioerro
Contributor II
Contributor II

Aggregatins hours in all rows

I've got this formula sum(aggr(minutes_month,machine)/60) and I want to have the hours by month which the machine is available

And when I take table with a row by breakdown only one of these breakdowns got the right hours in the others I've got 0.

 

TOTAL...................500
COMPANY ATOTAL.........500
COMPANY AMACHINE 1TOTAL250
COMPANY AMACHINE 1BREAK 10
COMPANY AMACHINE 1BREAK 1250
COMPANY AMACHINE 1BREAK 10
COMPANY AMACHINE 2TOTAL250
COMPANY AMACHINE 2BREAK 10
COMPANY AMACHINE 2BREAK 2250

 

The totals are right and I only want to have 250 in all breaks. What do I have wrong?

Labels (2)
4 Replies
sunny_talwar

May be this

Sum(Aggr(minutes_month, machine, company, break))/60
marioerro
Contributor II
Contributor II
Author

Thanks, Now it adds the totals. I have this table.

 

TOTAL...................1000
COMPANY ATOTAL.........1000
COMPANY AMACHINE 1TOTAL500
COMPANY AMACHINE 1BREAK 1250
COMPANY AMACHINE 1BREAK 1250
COMPANY AMACHINE 1BREAK 1250
COMPANY AMACHINE 2TOTAL500
COMPANY AMACHINE 2BREAK 1250
COMPANY AMACHINE 2BREAK 2250

 

I would like this other one

 

TOTAL...................500
COMPANY ATOTAL.........500
COMPANY AMACHINE 1TOTAL250
COMPANY AMACHINE 1BREAK 1250
COMPANY AMACHINE 1BREAK 1250
COMPANY AMACHINE 1BREAK 1250
COMPANY AMACHINE 2TOTAL250
COMPANY AMACHINE 2BREAK 1250
COMPANY AMACHINE 2BREAK 2250
sunny_talwar

May be this

Sum(Aggr(NODISTINCT minutes_month, machine))/60

 

Brett_Bleess
Former Employee
Former Employee

Mario, did Sunny's last post get everything working as you wished?  If so, please be sure to return to the thread and use the Accept as Solution button on the post(s) that helped you get things working as you wanted.  This gives credit to the folks helping and lets others that visit the thread know that things actually worked.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.