简体   繁体   中英

SSRS : calculated field based on other field and condition

This is a question that is related to my previous one. pls kindly refer to it

SSRS : New calculated field based on where condition

the final table now looks like

Process Level  WW Start_WW Pro_Start
------- -----  -- -------- ---------
Test    Lvl_0   3    0       3
Test    Lvl_1  28    3       3
Test    Lvl_2  48   28       3
Samp    Lvl_0  10    0      10
Samp    Lvl_1  39   10      10
Samp    Lvl_2  51   39      10

Now what I want is instead of 0 in Lvl_0 of Start_WW will I be able to enter a value say Lvl_1.Value-4weeks? is it possible?

Any help is appreciated. Thanks!

Yes.You can do it. Add new calculated field. You can write IIF condition. Something like =IIF (Fields!.Level.Value= "Lvl_0" , " Lvl_1.Value-4weeks " ,Fields!.Level.Value).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM