BookmarkSubscribeRSS Feed
ed_hcf
Calcite | Level 5

I have been working on a SAS Visual Analytics report - I have been making a few changes to my report data and when I either try and refresh (or replace the report dataset) some of the categories are creating duplicates . Upload to CAS is as follows.   

cas retention;

proc casutil;
	droptable incaslib="CASUSER" 
	casdata="freecover_ret_ea" quiet;
	load data=shrdat.ea_rc_fc_metrics2  
	outcaslib="CASUSER"
	casout="freecover_ret_ea" 
	promote;
quit;

quit;

cas retention terminate;

If you look at the following screenshot you see both account_id and ancillary_product have duplicated when the dataset has been refreshed or replaced.  Unfortunately I cannot share the specific data due to privacy/sensitivity. 

ed_hcf_0-1784518108111.png

It is possible to delete one of the dupes (and VA dynamic menu only allows one to be deleted) however I am trying to get a better understanding of why this is happening and the best way to manage this going forward. The delete one of the dupes seems like a workaround not a fix.  

4 REPLIES 4
NithinRamu
SAS Employee

Hi ed_hcf, 

 

Do the duplicated data items have the same format as the other? If not, this seems like something for SAS Technical Support.

 

Regards,

Nithin

ed_hcf
Calcite | Level 5

@NithinRamu thanks for your reply. Yes they are the same format - it is the same data variable just reloaded. There seems to be something when a variable is already being used in an object this can trigger the duplication issue.   

SASKiwi
PROC Star

@ed_hcf - Could the reason for the duplication be two different variables with the same variable label? You can check this by running PROC CONTENTS on shrdat.ea_rc_fc_metrics2

ed_hcf
Calcite | Level 5

@SASKiwi   It is the same variable name but I am using labels. I will try SAS tech support and post the reply here. Thanks for your reply 

CFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 250 views
  • 0 likes
  • 3 in conversation