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

Re: Displaying Measure Totals as Dynamic Text using a Global Script

$
0
0

Hi Andrew,

 

Further to my previous comment, if your data source is a Universe or if the currency dimension is being filtered, getMembers("DimensionName", 0) may in fact retrieve the desired result.  In this case, to test the assignment of the value of the currency symbol to a global script variable, instead of looping through the array, you can simply apply the following more condensed script code:

 

var myCurrencyDimensionMember = DS_1.getMembers("CURRENCY_SYMBOL", 0)[0];

myCurrencySymbol = myCurrencyDimensionMember.internalKey;  // Global Script Variable

 

If you need the currency text you can apply the following:

 

myCurrencySymbol = myCurrencyDimensionMember.text;  // Global Script Variable


Regards,


Mustafa.



Viewing all articles
Browse latest Browse all 2806

Latest Images

Trending Articles


Telangana Ration Card Online Status Ahara Bhadratha Card Online Status


CalCen


Waves Complete v2019.02.14 Incl Emulator-R2R


[RELEASE THREAD]--_A-Team_--Cricket_Dream_5G


MCGEE, SAMUEL O., DECEASED, OF...


WordPress: Reverse Shell


GPGT - chio bu back from market kym


Ondonga king dragged to court


Justin Guy Ballou, III


Krupt Biography, Death, Songs, Photo, Video



Latest Images

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