Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Assign the right values to the corresponding rows in my database table

$
0
0
if my table is like this in my database

Student    Staff      children
34         104         playing
34         104         playing      
34         104         rugby     
34         104         soccer        
34         104         playing

i want the value 34 to assign only to playing, if rugby or soccer it should be 0 or empty set and staff(1024) to assign only to rugby and soccer.i was wondering can i do this in my expression if i have =Fields!XXX.value. if not how can i write this in query.i query and display my tables as this.which is fine.and value of 34 and 104 a constant value.

my final table result i want to be like this

Student    Staff      children
34             0           playing
34             0           playing      
0             104         rugby     
0             104         soccer        
34           0            playing

thanks in advance

Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>