Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
krishna20
Specialist II
Specialist II

calculation in straight table

Hai Friends,

I have an requirement like calculation on fly when user select date range

i am uploading sample data and qvw

4 Replies
MK_QSL
MVP
MVP

What is the logic behind your requirements?

krishna20
Specialist II
Specialist II
Author

Thanks for your quick reply

the logic behind this requirement is

we need to calculate the value when user select the period

krishna20
Specialist II
Specialist II
Author

Thanks for Suggestion ,

The below one is the scenario

Please open the application and select the Month Year  from  mar 16 to jun 16

now  see the input data in table box and arrived data in straight table

for every metric i am calculating formula changes for min selected and max selected  during the period selected by user

example:if you take 235863 min start date is 01/03/2016 prev cluster is Negative

and max start date is 01/06/2016 and current cluster is Negative that means there is no change

for calculating change logic is:

Starting cluster==FirstSortedValue(PREVCLUSTER,START_DATE)

ending cluster==FirstSortedValue(CURRCLUSTER,-START_DATE)

change_type:

If(StartingCluster='NULL'and EndingCluster='Negative', 'Negative',

   If(StartingCluster='NULL'and EndingCluster='Neutral', 'Neutral',

   If(StartingCluster='NULL'and EndingCluster='Positive', 'Positive',

  

  

If(StartingCluster='Positive' and EndingCluster='Neutral','Negative',   

  If(StartingCluster='Positive' and EndingCluster='Negative','Negative',

      If(StartingCluster='Neutral' and EndingCluster='Negative','Negative',

If(StartingCluster='Neutral' and EndingCluster='Positive','Positive',

  If(StartingCluster='Negative' and EndingCluster='Positive','Positive',

  If(StartingCluster='Negative' and EndingCluster='Neutral','Positive',

If(StartingCluster='Neutral' and EndingCluster='Neutral','NC',

  If(StartingCluster='Negative' and EndingCluster='Negative','NC',

  If(StartingCluster='Positive' and EndingCluster='Positive','NC',

))))))))))))

now i need to calculate percentage of positives and negatives and neutrals