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

need help on Ad-hoc report

Hi Community,

I have done simple Ad-hoc report,

Capture.PNG

if i make selections Dimension = Year and Measure= A,B,C and Total

1.PNG

here total working fine 1550,  total calculation A+B+C.

MY requirement, if i make single selection Measure= A and Total,  i have to show my total, my total not showing because,

i have written my expression Column(1)+Column(2)+Column(3),

Capture.PNG

and if i'm make selections A, B and Total, i need to show based on selection Total.

same as A, C and Total

How to write expression total ?

Thanks in Advance...

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Yes, you are right, and this is because the Total column itself is getting added in such scenarios. I have got a more dynamic (a bit tricky too) expression. Try :

RangeSum($(=mid(Concat(',Column(' &ValueLoop(1,$(=Count(Measure)-1))&')' ),2)))

Capture.JPG

View solution in original post

22 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

If this is your real time scenario then try below expression for total.

=Sum({<Company={"$(=concat(distinct Measure,'","'))"}>}Sales)

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

no it wont.

tell us your real scenario with real values.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
qv_testing
Specialist II
Specialist II
Author

Please have a look my real example....

PFA, !

qv_testing
Specialist II
Specialist II
Author

Please can you help on this...

Anil_Babu_Samineni

You can use Full expression rather Column(). check and let us know. Off course, In Conditional enable you need to manipulate same thing

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
qv_testing
Specialist II
Specialist II
Author

No, it won't work because it will return whole sum.

i want to change based on Measure selection.

Anil_Babu_Samineni

I need to look attachment, Will help you for sure once i get access the app

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi Can you tell us your expected output.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
qv_testing
Specialist II
Specialist II
Author

If i make all Measure selections, my total coming proper.

By My scenario, if i make any selection

0-30 and Total,

0-30, 31-90 and Total

i want to total as well...

Capture.PNG

PFA,