Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
BI & Data Trends 2021. Discover the top 10 trends emerging in today. Join us on Dec. 8th REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor III
Contributor III

Nil field despite values below in sub-levels

Hello,

I have a report that has been working well with just "Master Account...", "StockCode" & "Name" as options in the pivot table. As soon as I added "SalesCategory" I found a strange issue that I cannot solve.  Under the Rebates & Discounts column the total for "SalesCategory" is nil despite everything below is calculating fine.

SalesCategory blank.png

The fields under E-Commerce and Gross sales have been blanked out for posting but are populated correctly with values. This includes the one rebates value that is blanked out too.

What could be causing this issue?

Thanks

Labels (1)
1 Solution

Accepted Solutions
Highlighted

How about if you try this

(Sum({$<CalDate = {">=$(=date(AddMonths(today(),-12)))<=$(=date(today()))"}>} -[Gross sales value] * Rebate))
+
(Sum({$<CalDate = {">=$(=date(AddMonths(today(),-12)))<=$(=date(today()))"}>} -[Gross sales value] * Discount))

View solution in original post

4 Replies

What is your expression for Rebates & Discounts?

Highlighted
Contributor III
Contributor III

(Sum({$ < CalDate = {">=$(=date(AddMonths(today(),-12)))<=$(=date(today()))"} > }-[Gross sales value])*Rebate)
+
(Sum({$ < CalDate = {">=$(=date(AddMonths(today(),-12)))<=$(=date(today()))"} > }-[Gross sales value])*Discount)

Highlighted

How about if you try this

(Sum({$<CalDate = {">=$(=date(AddMonths(today(),-12)))<=$(=date(today()))"}>} -[Gross sales value] * Rebate))
+
(Sum({$<CalDate = {">=$(=date(AddMonths(today(),-12)))<=$(=date(today()))"}>} -[Gross sales value] * Discount))

View solution in original post

Highlighted
Contributor III
Contributor III

That's solved it. Thank you for this solution.