Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8944

Re: special aggregation in the query

$
0
0

Hi,

 

Right now you have your CHAR1, CHAR2, and SUM in your COLUMNS section..Hide CHAR1 and CHAR2..

 

As Satya said, you need to create two (2) formula variables with REPLACEMENT PATH as its processing by and link them to your CHAR1 and CHAR2, let's call them FV1 and FV2, respectively..

 

Create a formula, let's call it FORMULA1, and insert FV1..

Create another formula, let's call it FORMULA2, and insert FV2..

Create again another formula, let's call it FORMULA_CHECK, and insert this equation:

FORMULA_CHECK = (FORMULA1 = FORMULA2) * 1 + 0

 

Then activate the CONDITION in your query and make a condition to FORMULA_CHECK = 1..So that all values of FORMULA_CHECK with ZERO will not be shown..

 

 

 

OR

 

 

 

If you do not want to use CONDITION, here is another approach:

 

Right now you have your CHAR1, CHAR2, and SUM in your COLUMNS section..Hide them all..

.

Create two (2) formula variables with REPLACEMENT PATH as its processing by and link them to your CHAR1 and CHAR2, let's call them FV1 and FV2, respectively..

 

Create a formula, let's call it FORMULA1, and insert FV1..

Create another formula, let's call it FORMULA2, and insert FV2..

 

Hide FORMULA1 and FORMULA2..

 

Create again a formula, let's call it FORMULA_CHAR1, and insert this equation:

FORMULA_CHAR1 = (FORMULA1 = FORMULA2) * FORMULA1 + 0

 

Create another formula, let's call it FORMULA_CHAR2, and insert this equation:

FORMULA_CHAR2 = (FORMULA1 = FORMULA2) * FORMULA2 + 0

 

Create another formula, let's call it FORMULA_SUM, and insert this equation:

FORMULA_SUM = (FORMULA1 = FORMULA2) * SUM + 0

 

Then activate the SUPPRESS ZEROS option in your query..

 

 

Just post here for questions..

 

Regards,

Loed


Viewing all articles
Browse latest Browse all 8944

Trending Articles



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