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

SSRS Expression to calculate percentage with the denominator being the first value in the same column group in a matrix report

$
0
0

Hello, Expert,

Could you please help me with the following problem? Thanks in advance!

I have designed the matrix report (SSRS 2012) with database table structure looks like below.    

Week            

Version

     Count

Week1

V1.1

4000

Week1

V1.2

4000

Week1

V1.3

4000

Week2

V1.1

3000

Week2

V1.2

3000

Week2

V1.3

3000

Week3

V1.1

2000

Week3

V1.2

2000

Week3

V1.3

2000

Week4

V1.1

1000

Week4

V1.2

1000

Week4

V1.3

1000


     

The matrix report displays like below. Column grows based on no of Week in the table.   

 

    Week1

    Week2

    Week3

    Week4

V1.1

4000

3000

2000

1000

V1.2

4000

3000

2000

1000

V1.3

4000

3000

2000

1000

What I want to do now is: instead of the Count values, I need to calculate the percentage of each week over the Count in Week1 so that each cell displays Count(Week2)/Count(Week1), Count(Week3)/Count(Week1), etc. What is the SSRS expression for that? I’m new to SSRS, Please help!


Viewing all articles
Browse latest Browse all 10045

Trending Articles



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