Skip to main content
Announcements
Qlik Acquires Upsolver to Advance Iceberg Solutions: READ MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
BhaminiParmar12
Contributor III
Contributor III

Instead of "-" I want "0" in my Pivot Table

I have a Pivot Table in that table Row I have category in Column we have Sub Category and in Values I have Sales in my pivot table wherever there is "-" I want "0" in Qliksense


BhaminiParmar12_0-1723028365707.png

4 Replies
Kushal_Chawda

@BhaminiParmar12 what is the measure ?

BhaminiParmar12
Contributor III
Contributor III
Author

Hi @Kushal_Chawda  Measure is Sales
Below is my Script 

LOAD
Category,
Sales,
Profit,
"Sub-Category"
FROM [lib://Bhamini:DataFiles/ Task - instead 0.xlsx]
(ooxml, embedded labels, table is Sheet1);

BhaminiParmar12
Contributor III
Contributor III
Author

@Kushal_Chawda as you can see in my Pivot Table There is "-" But I want 0 
where ever there is  "-"


BhaminiParmar12_0-1723030982039.png

 

Kushal_Chawda

@BhaminiParmar12  It's because you don't have sales for all combination of Category and Sub Category, you need to generate and add missing combination of Category and Sub category to convert NULL to 0. See the attached