Hi,
I am working with SAS VA 7.3 for building reports for quality control in manufacturing industry. The dashboard should show three types of reports linked together: the frequency of each defect, the frequency of the defects grouped by the product type and a time series that shows the frequency and % of defects per day.
The three reports are linked through a filter interaction: firstly the type of defect is selected, then the product group and at the end, the time series shows the trend of the defects through the time period.
I am having problems with the time series, more precisely with building the aggregate measure that shows the % of defect on total items produced. I have tried with a couple of aggregate measures but none seems to work. The first formula shows the % of defect on daily basis (so for the whole time period the sum of % is 100) and the second formula is equal 100% for each day.
Instead I would like to show the % of defect on total items produced day by day:
Here's an example of the data source
Can you help me resolving this issue?
Hello @sassy7
Let's see if I can help you. Here's a table I did:
I wasn't quite sure about the exact measure you were after so here's my three pics:
Is any of these what you want?
Best regards,
Petri
Great!
So the steps taken are:
IF ( 'Defect'n = 'NONE' ) RETURN 0 ELSE 'Frequency'n
Sum [_ByGroup_] ('Defected'n) / Sum [_ByGroup_] ('Frequency'n)
That's it!
Best regards,
Petri
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.