Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Nodistinct Issue

Hi,

I am trying to duplicate records for a table using NODISTINCT function but it is returning nulls. I have 2 dimensions which is page and its keyword associated to that page. The expression is keyword trend value which gives the keyword its popularity value, but does not associate on a page level. I have other expressions such as traffic and rank which associates page to their respective keyword. The problem I have is that the table is returning nulls in 'Keyword Trend Value' column when the keyword has a trend value that exists. I tried using this formula aggr(nodistinct(avg(keyword_trend_value),keyword).

This what the ideal output would look like:

PageKeywordRankTrafficKeyword Trend Value
ABC.comA32025
ABC.comB110075
DEF.comA56025
LMN.comB71575
XYZ.comC68030

Thanks!

3 Replies
swuehl
MVP
MVP

You are showing your expected result / chart, but how does your input tables in your model look like?

That's what I haven't really understood from your description.

You can probably get your required result using the TOTAL qualifier with a field list in your aggregation function, either after adding all chart dimensions to the aggr() function (and removing the nodistinct qualifiert), or maybe you don't need the aggr() function at all.

What about

=Avg(TOTAL<keyword> keyword_trend_value)

Anonymous
Not applicable
Author

Hi Stefan,

This is what the input table looks like:

PageKeywordClicksKeyword Trend Value
ABC.comA2025
ABC.comB10075
ABC.comC210-
ABC.comD456-

As you can see, I will filter for ABC.com and some will show up as null when there is a trend value that exists for that keyword.

I used Avg(TOTAL<keyword> keyword_trend_value) and same problem occurs.

swuehl
MVP
MVP

Could you upload a small sample QVW that demonstrates your issue?