*Reposting*
Hi, I am creating SAS VA dashboard in SAS Viya 3.4
For one of the dashboards, I need to calculate Rate which is "count(Store_ID with sales)/ Count(all Store_ID)".
Count Store_ID with sales is coming from fact_sales table which is having 2.7million records (around 7 GB).
and the denominator Count(All store_id) is coming from dimension table which is having 30K records
when I left join these 2 tables (left table is the Dimension table) and create another table the table size grows to 64 GB, which causes a massive slowdown.
What is the best way to achieve this. Please suggest.
In the above screenshot, if i left join for every date there will be min 30K records per day. For 2 years the the number of rows will be 730*30K.
Hi @debopriya85,
first approach: on what subsets should the "Rate" be calculated. If you just need to calculate the one overall rate, there shoud be a solution without joining the tables.
Hi @debopriya85,
second approach: do you join by identity of the store_id? How many other columns are in the DIM_store tabel?
In general, data should be prepared outside of Visual Analytics. If you look at Considerations for Data Source Joins in the following topic, it explains why data joins can cause performance problems.
https://go.documentation.sas.com/doc/en/vacdc/8.5/vareportdata/n167hzcxe4pi2yn1b50jv5ujgtor.htm
-------------------------------------------------------------------------
Four tips to remember when you contact SAS Technical Support
Creating Beautiful Reports
SAS Visual Analytics Learning Center
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.