Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Pivot table - dimension repeat

below is the create table script

create table region (area varchar2(30), district varchar2(30), city varchar2(30));

insert into region values ('chandigarh', 'chandigarh', 'chandigarh');

insert into region values ('punjab', 'patiala', 'patiala');

insert into region values ('punjab', 'patiala', 'nabha');

insert into region values ('punjab', 'patiala', 'SAN');

insert into region values ('punjab', 'SAS', 'SAS');

insert into region values ('punjab', 'SAS', 'ZRK');

i added all column area , district, and city in dimension of PIVOT table

in city i have repeated values same reside in DISTRICT

i dont want to see highlighted values in red box in CITY column

how can i limit this from -CHART - DIMENSION - PROPERTIES

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Have you checked my example????

View solution in original post

9 Replies
ashfaq_haseeb
Champion III
Champion III

Hi,

In script write below

If(district =city ,'',city ) as City

In chart suppress null values.

Regards

ASHFAQ

tresesco
MVP
MVP

For CITY dimension use, calculated dimension: If(CITY<>DISTRICT, CITY), then in the dimension tab, select the expression and check 'Supress When Value is Null' .

Anonymous
Not applicable
Author

Its showing because you have that particular value of patiala in district and city as well..

If you really want to omit it,then

instead of CITY as dimension use following as calculated dimension

if(CITY=DISTRICT,null(),CITY)

and Supress when Value is null(check the checkbox for this dimension)

PFA the example

Not applicable
Author

thanks ashfaq, but i need to perform changes at chart level (properties).

ashfaq_haseeb
Champion III
Champion III

then

use this

if(CITY=DISTRICT,null(),CITY) as your calculated dimension and supress null values.

Regards

ASHFAQ

Not applicable
Author

sorry guys still not working... i will back on same soon

thanks for being there

jagan
Luminary Alumni
Luminary Alumni

Hi,

In script try like this

LOAD

*,

If(district <> city, 1, 0) AS Flag

FROM DataSource;


Now in chart try like this


Dimension: district, city

Expression:Count({<Flag={1}>}District)


Hope this helps you.


Regards,

Jagan.



Anonymous
Not applicable
Author

Have you checked my example????

Not applicable
Author

thanks i have checked ur answer ..

actullay i am writing the if statement in "Enable conditional" box,, i.e. where i performing wrong.