Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

Excel cubeformulas and MDX- calculating and comparing multiple values?

$
0
0

I'm working on a data validation project; the process owner has built pivot tables and reviews them to manually validate the ETL on our database each month. I'm trying to automate that validation. The validations I've worked on so far have been single comparisons, like "does A equal B".

Now I've come to a more complicated validation, easy to do in a pivot table but I'm not sure how to do it via cubeformulas.

The table shows (in rows) members of a set.

Data column 1 shows one measure, Data column 2 shows a different measure. Let's say sales dollars and rebate dollars. We want to validate that the percent of rebate dollars to sales dollars is equal for each row.

               Source Data                   Calculated 1                        Calculated 2                  Validation

               Sales          Rebate

Apples     2000          200             2000/3500= 57.14%              200/350= 57.14       57.14=57.14 =True

Grapes      500             50             500/3500= 14.29%               50/350= 14.29%     14.29=14.29 =True

Pears        1000          100            1000/3500= 28.57%             100/350= 28.57%     28.57=28.57 = True

Total        3500           350

(in reality, there are hundreds of rows)

So ultimately, I need to identify whether every value in the validation column is TRUE. My hope is that I can do this in one (or a few) cubeformulas. Is it possible via a cubeformula (using MDX) to calculate and compare multiple values like this and return a true/false value?


Thank you for any ideas or pointers!


Viewing all articles
Browse latest Browse all 11829

Trending Articles



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