Enkeled Kanaj Posted July 26 Share Posted July 26 This post was recognized by Heleen Snelting! "Thanks for your contribution Enkeled Kanaj!" Enkeled Kanaj was awarded the badge 'Great Content' and 3 points. Hi, Just wanted to share how I matched a value with regular expression in Spotfire report by creating a calculated column. in this case we use "case when then" instead of "if, elseif, then" used in other BI-s option 1 CASE WHEN (right([EutranCellFDD],2)='A4') or (right([EutranCellFDD],2)='D4') or (right([EutranCellFDD],2)='N4') or (right([EutranCellFDD],2)='K4') or (right([EutranCellFDD],3)='D42') THEN 'Sector1' WHEN (right([EutranCellFDD],2)='B4') or (right([EutranCellFDD],2)='E4') or (right([EutranCellFDD],2)='O4') or (right([EutranCellFDD],2)='L4') or (right([EutranCellFDD],3)='E42') THEN 'Sector2' WHEN (right([EutranCellFDD],2)='C4') or (right([EutranCellFDD],2)='F4') or (right([EutranCellFDD],2)='P4') or (right([EutranCellFDD],2)='M4') or (right([EutranCellFDD],3)='F42') THEN 'Sector3' ELSE 'Sector4' END otion 2 CASE WHEN ([EutranCellFDD]~='A4$') or ([EutranCellFDD]~='D4$') or ([EutranCellFDD]~='N4$') or ([EutranCellFDD]~='K4$') or ( [EutranCellFDD]~='D42$') THEN 'Sector1' WHEN ([EutranCellFDD]~='B4$') or ([EutranCellFDD]~='E4$') or ([EutranCellFDD]~='O4$') or ([EutranCellFDD]~='L4$') or ([EutranCellFDD]~='E42$') THEN 'Sector2' WHEN ([EutranCellFDD]~='C4$') or ([EutranCellFDD]~='F4$') or ([EutranCellFDD]~='P4$') or ([EutranCellFDD]~='M4$') or ([EutranCellFDD]~='F42$') THEN 'Sector3' ELSE 'Sector4' END 4 2 Link to comment Share on other sites More sharing options...
Solution Heleen Snelting Posted August 12 Solution Share Posted August 12 Thanks for sharing the above @Enkeled Kanaj ! If anyone uses this solution, please add a comment. And we can turn this type of content into a community article as well. Heleen Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now