Forum Discussion

huntj06's avatar
huntj06
New Member
5 years ago
Solved

Frequency Distribution Table Help

I’m attempting to come up with a frequency distribution that enables me to create a visual that shows how many data points meet a specified result. I have two columns in a table named DATE and PRODUC...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi huntj06,

    For your requirement, I think you can create a calculated table based on raw table records to aggregate them based on date value and distinct product count.

    All the secrets of SUMMARIZE - SQLBI

    After these steps, you can add a calculated column to that table to mapping 'count of product' values to specific number range groups, then you can use the group as axis and 'count of product' as value to create the expected charts.

    DC Product Range =
    IF (
        [DC Product] >= 5,
        "5",
        IF ( [DC Product] >= 3, "3~4", IF ( [DC Product] >= 1, "1~2" ) )
    )

    Regards,

    Xiaoxin Sheng