Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
renjithpl
Specialist
Specialist

If statement and set analysis

Hi All,

I have an expression like below

if(

Dim_FY_New = vNYear, 0,

rangesum(above(SUM({<Dim_FY_New = {'$(vCYear)'}>} S_Amount_USD)),0,RowNo()))

I want to restrict the rangesum formula to Current Year which is 2016.

Please see the attachment as per my above formula. Why doesnt it restrict to 2016 quarters.

Appreciate your response.

Thanks

Renji

10 Replies
tresesco
MVP
MVP

Could you share your sample qvw?

renjithpl
Specialist
Specialist
Author

Please look at the attached qvw.

tresesco
MVP
MVP

Variable vNYear is returning FY17. Is this what you expect it to return? Do you want only the bars for FY 16 quarters?

Anil_Babu_Samineni

I have an expression like below

if(

Dim_FY_New = vNYear, 0,

rangesum(above(SUM({<Dim_FY_New = {'$(vCYear)'}>} S_Amount_USD)),0,RowNo()))

I want to restrict the rangesum formula to Current Year which is 2016.

For this, try like

if(

Dim_FY_New = vNYear, 0,

rangesum(above(SUM({<Year -= {"=$(=Max(Year)"}, Dim_FY_New = {'$(vCYear)'}>} S_Amount_USD)),0,RowNo()))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
renjithpl
Specialist
Specialist
Author

I want to show the bars for only FY16 onwards, anything before FY16 should not be shown.

tresesco
MVP
MVP

I see bars for only FY16 onward. Please explain your requirement in more details.

renjithpl
Specialist
Specialist
Author

Bars are showing only for 16, but i dont want to show any other quarters other than FY16, right now its showing other quarters like, fy 13, 14, 15...

tresesco
MVP
MVP

I am afraid that I could not follow you. In your sample qvw, I can see bars only for FY16 onward.

Anil_Babu_Samineni

Screenshot_20160906_155310.jpg

Is this you are expecting from dim?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful