Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Faiz
Contributor
Contributor

Exclude Year in Measure

Hi,

 

I am using below formula to exclude 2016 in the below expression, but it is not working. What is the formula I should use?

SUM ({<[Posting Date.autoCalendar.Year] <> {2016}>} SALES).

Also label has the expression='FACT_VES.Posting Date.Year' and showing 2013,2014,2015 and 2016. How to exclude 2016 from the label expression?

 

Regards

Faiz 

 

 

1 Solution

Accepted Solutions
Vegar
MVP
MVP

Try this:

SUM ({<[Posting Date.autoCalendar.Year] -= {"2016"}>} SALES).

For dimension try this:

If(FACT_VES.Posting Date.Year<>2016, FACT_VES.Posting Date.Year)

View solution in original post

1 Reply
Vegar
MVP
MVP

Try this:

SUM ({<[Posting Date.autoCalendar.Year] -= {"2016"}>} SALES).

For dimension try this:

If(FACT_VES.Posting Date.Year<>2016, FACT_VES.Posting Date.Year)