Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
rkpatelqlikview
Creator III
Creator III

How to get only total region sales even selecting the store ID

Hi All,

Please let me know how to get region wise total sales even you selecting the store ID.

Store ID is the only Input. It will show the store region along with that i need all the stores sales in that region.

It should associate only with dates not with ID's.

what is the calculation? How to use set analysis?

I used to work with Only function.

=sum({<only(total Region)>}[sales])

Capture.PNG

1 Solution

Accepted Solutions
sunny_talwar

Try this

=Sum({<[Store Regions] = p([Store Regions]), [Store ID]>}Sales)

View solution in original post

11 Replies
rubenmarin

Hi kumar,  maybe with:

Sum({<Region>} sales)

Anil_Babu_Samineni

Perhaps this?

Sum(TOTAL <[Store Region]> {<[Store ID]>} sales)

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
rkpatelqlikview
Creator III
Creator III
Author

Hi Ruben,

No. Value is changing based on the store ID.

rkpatelqlikview
Creator III
Creator III
Author

Hi Anil,

I applied this one also. But its showing all the regions sales but i need one region sales  that ID in that region.

After put this expression.

Sum(TOTAL <[Store Region]> {<[Store ID]>} sales)

When i entered the Store ID text object is showing all the sales of all the regions. Its not changing.

Anil_Babu_Samineni

Do you mean this? If none of the works, Please post sample

If([Store ID] = SubStringCount([Store ID], [Store Region]), Alt(Sum(TOTAL <[Store Region]> {<[Store ID]>} sales),Avg(0))


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
rkpatelqlikview
Creator III
Creator III
Author

Sure. I will provide sample.

rkpatelqlikview
Creator III
Creator III
Author

Hi Anil,

Please find the attached.

sunny_talwar

Try this

=Sum({<[Store Regions] = p([Store Regions]), [Store ID]>}Sales)

Anil_Babu_Samineni

PFA

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