Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
vanderson009
Creator III
Creator III

Group By Issue in Null Field

Hi,

I have data like attachment,

issue.JPG

I have null sales value for month of Sep, because of some requirement i have taken that table as resident with group by.

But whenever i am showing this data on sheet level in table format then this null values gets replaced with "0".

issue1.JPG

I want to show that null value as "-".

Regards,

Villyee

Labels (1)
4 Replies
trdandamudi
Master II
Master II

May be as below:

Group By Issue in Null Field.jpg

Anil_Babu_Samineni
MVP
MVP

Try from presentation tab

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
Chanty4u
MVP
MVP

try in script,

NULLASVALUE SaleMonth;

SET NullValue = '- ';

sunny_talwar
MVP
MVP

Try this script:

Test:

Load * inline [

Date,SaleMonth,SaleYear,Sales

01/23/2014,Jan,2014,20

11/11/2014,Nov,2014,0

12/24/2015,Dec,2015,50

09/19/2015,Sep,2015,

];

Final:

NoConcatenate

LOAD If(Avg(Sales) >= 0, Sum(Sales)) as Sales,

  Date,

  SaleMonth,

  SaleYear

Resident Test

Group By Date, SaleMonth, SaleYear;

Drop Table Test;

UPDATE: Forgot to acknowledge, but I used the sample provided by Thirumala and made some modifications to it