I have strong confusion with fact values, is it derived directly from OLTP by ETL mechanism into fact table & then we need to perform aggregate function to get summarized that by throwing queries? Or it is nothing but summarized value that we get from the dimensional table present into star schema but not directly from OLTP?
Please find attached two examples for more detail.
in stark schema1 image,https://i.stack.imgur.com/Ibbg7.png fact table showing two facts or measure as 'dollars_sold' & 'unit_sold' where is this coming from? & it is not summarized however with this fact table by applying aggregate function summarized date can obtain.
in stark schema2 image, fact table showing one facts or measure as total sales, but here i know that it came from customer-trans-dia also it is summarized data.
So please tel me out of this two example which one is correct?
Thanks in advance.