Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Web Intelligence
Viewing all articles
Browse latest Browse all 5402

Logic

$
0
0

Hi

 

I have below dataset,

 

1.png

 

I want to get like below

 

2.png

 

The logic for Q1 and Q2 is,

 

Week 1 has 2 count (A01 & A02) so Q1 start with 2 from week 1. Then A01 QI changed to Q2 in week 8 and also for A02. so from week 8 onwards 2 count for Q2.

 

Then Week 14 A01 changed to Q1 again and A02 remain Q2

 

So Q1 is i from Week 14 to until next change and Q2 is also 1 (A02) until next change.

 

How to achieve this?


Viewing all articles
Browse latest Browse all 5402

Trending Articles



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