Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
karthikchintu30
Contributor
Contributor

Set Analysis

Hi all,

If I have two fields namely student id and weight, weight has values lb's and  kg's and I want to find value of kg's in a separate column for each student id  using set analysis.

 

1 Solution

Accepted Solutions
sunny_talwar

Use an expression like this may be

Only({<weight = {"*kgs*"}>} Replace(weight, 'kgs', ''))

View solution in original post

9 Replies
sunny_talwar

So does the weight includes lbs and kgs or does it say 100 lbs, 50 kgs etc?

karthikchintu30
Contributor
Contributor
Author

yes it has both

Somasundaram
Creator III
Creator III

Hi,

 

along with Aggregate function we can use set analysis,

 

=count({<weight={'kg's'}>} [student id]) 

 


-Somasundaram

If this resolves your Query please like and accept this as an answer.
sunny_talwar

Well what I am trying to understand is the kind of values stored in weight column?

 

Weight

10

20

30

 

or

 

Weight

10 lbs

20 kgs

30 lbs

 

or

 

Weight

lbs

kgs

lbs?

karthikchintu30
Contributor
Contributor
Author

Weight

10lbs

20kgs

30lbs

Somasundaram
Creator III
Creator III

=count({<weight={"*kgs"}>} [student id])


-Somasundaram

If this resolves your Query please like and accept this as an answer.
sunny_talwar

In that case try something like this in your set analysis

{<weight = {"*kgs*"}>}
karthikchintu30
Contributor
Contributor
Author

I want to display the weight value (if I have 10 kgs for student id and then I want the kg's column to be displayed as 10)

sunny_talwar

Use an expression like this may be

Only({<weight = {"*kgs*"}>} Replace(weight, 'kgs', ''))