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

Re: Aggregated values in charts

$
0
0

You are right Mustafa, initial view could be very helpfull.

 

I've played with changing initial view and noticed that in case then Load in script = true for Data Sources it doesn't suit.

 

For example:

 

1. In BEx query i remove 0Calmonth from the columns and add 0Copm_code:

1 .png

 

2. Reload Design Studio (just in case) and recreated Data Sources:

2.png

3. Change initial view for DS_1

3 initial view.png

Change initial view for second DS (named DS_3)

3 initial view DS3.png

4. That what i see in Design Studio.

As you can see there are 0Calmonth and Companies in column Chart

4.png

 

5. Fixing script

 

// Fiilter for Pie works only with Key Display type
DS_1.setMemberDisplay("0COMP_CODE", MemberDisplay.KEY); 
// In Pies i need only Person_groups:
DS_3.removeDimension("0COMP_CODE");
DS_3.moveDimensionToColumns("ZPERSGRP");
// Set filters for Pies
DS_3.setFilter("0CALMONTH", CHART_1.getSelectedMembers("0CALMONTH"));
DS_3.setFilter("0COMP_CODE", CHART_1.getSelectedMembers("0COMP_CODE"));

6. Run application in local mode

As you can see 0Calmonth is gone from column chart.

5.png

 

 

I tried different variation of BEx query with and without scripting and every time final view didn't matched with preview in Design Studio.


Viewing all articles
Browse latest Browse all 8644

Trending Articles



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