Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
davinfrost
Contributor III
Contributor III

disctinct on textbox and distinct on table box

hi fellas,

i have a problem to discuss, so when i tried to disctinct a field which is [total so no]

Untitled.jpg

the left one is im using Count(DISTINCT([Total SO No]))

and on the right one also same , im using Count(DISTINCT([Total SO No]))

 

but there is a difference in total,

how to get same total amount? btw ,im using same formula.

 

thanks

1 Solution

Accepted Solutions
ArMehr
Contributor II
Contributor II

Hi, You can change type of total calculation in straight table:

Regular Sum (add every row toghether): 

s1.JPG

 

expression total (calculate expression for total dimensions):

s2.JPG

 

 

Mehr

View solution in original post

9 Replies
sergio0592
Specialist III
Specialist III

Hi,

You have a dimension in your chart on left. So in your text box, try with :

=sum(aggr(sum(distinct([Total So No]),Dimension))
sergio0592
Specialist III
Specialist III

Sorry, i forgot a (

=sum(aggr(sum(distinct([Total So No])),Dimension))
davinfrost
Contributor III
Contributor III
Author

sorry mate, i wrote wrong codes,

Count(DISTINCT([Total SO No]))

i wanted to get total count of row from [Total so no]

sergio0592
Specialist III
Specialist III

So, try

=sum(aggr(count(distinct([Total So No])),Dimension))
davinfrost
Contributor III
Contributor III
Author

i use this & ' Total Invoice = '&Count(aggr(DISTINCT([Total SO No]),[Total SO No])) it still same

i dont using sum because i only want to count

davinfrost
Contributor III
Contributor III
Author

anyone help please??

ArMehr
Contributor II
Contributor II

Hi, You can change type of total calculation in straight table:

Regular Sum (add every row toghether): 

s1.JPG

 

expression total (calculate expression for total dimensions):

s2.JPG

 

 

Mehr
avinashelite

Hi 

I have you enabled the suppress null values in the chart ? if yes then un-check the same and compare your counts with the text box numbers it should match because text box considers null values in the dimension by default and in the chart you could eliminate it using suppress nulls 

davinfrost
Contributor III
Contributor III
Author

this one really helps !!!

thank you so much mate !!