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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
neha_sri
Creator III
Creator III

conditional dimension

I have a chart where I have dimension as week num (i.e Week-,Week-1,Week-2,Week-3 ..and so on) I want to remove Week-, so that my dimension should start like (Week-1,Week-2... and so on).How can I do so..

Thanks in anticipation

6 Replies
tresesco
MVP
MVP

Try like:

If([Week Num]<>'Week-', [Week Num])

And check 'Supress When Value is Null' in dimension tab.

PrashantSangle

Hi,

Try like

If(not isnull(Subfield(DimensionName,'-',2)),DimensionName)

OR

If(len(trim(Subfield(DimensionName,'-',2)))>0,DimensionName)

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable

use set analysis

        expression is like this

             sum({<week={'*'}-{'week-'}>}dimension) i hope this will help u

Not applicable

Hi,

Give the dimension as

If(Week num='Week-',null(),week num)

Then Supress Zero values

Regards,

Joshmi

CELAMBARASAN
Partner - Champion
Partner - Champion

You could use dimension

If(WeekNum<>'Week-', WeekNum)

Also you can do with set analysis, Assuming that you have expression as Sum(Sales) then

Sum({$-<WeekNum={'Week-'}>} Sales)

But I wonder how it formed without number. I would recommend to remove that value from the WeekNum Field itself.

Thanks

Celambarasan

neha_sri
Creator III
Creator III
Author

actually I dont want to suppress the 0 value and again i have cyclic drill down in dimension which has one field as Week Num and other dimension as Month