Forum Discussion
Some help on time intelligence please
- 6 years ago
You need to set up the model as I stated to ensure all values for your Dept ID are included in the table visual:
If you check the DeptId values in the EmpDataFact, Id 500 is missing. There are no rows for this ID in this table (hence the sum of salaries is BLANK). If you use the DeptId field from the EmpDataFact, you will not see data for ID 500.
By establishing the structure as above, and use the fields from the Dept Table in your visuals, you enure that all IDs are present
As regards the values, you need to have an aggregation (SUM, DIVIDE, MAX, MIN...)
If you work with % values, it is probably a good idea to calculate the absolute values deriving from the % for aggregation purposes (In my book, a % in a row of a data table should be used to calculate a value in that row; for final results I would do the % calculation at the end after aggregations are done and over with).
If your values are percentages and ONLY HAVE ONE row per ID (per date period you are calculating against) related to this %, then you can use any of these aggregations (The total as a result is irrelevant since it is not a calcualtion - unless you want something specific shown- you can get rid of the total using ISINSCOPE to show BLANK). If you have more than one row per ID (per date period you are calculating against) as a percentage, you will either have to make calculations prior to aggregating (recommended) or choose which % you wish to be seen/used.
I have used SUM for both salaries and budget amounts, and this is what your data returns.
Hi jujiro-eb ,
I have done one modification in your relationships. I have made them all bi-directional as follows:
Then in the table visual do the following against "Budget" column:
This resolves the issue.
Kindly mark this solution as resolved.
Thanks,
Pragati
- jujiro-eb6 years agoHelper I
Hi Pragati,
In your solution, Dept 500 with some budget numbers is not appearing. Also, if you change the Budget to "Don't Summarize," you will see that the numbers are off.
Thanks.
- PaulDBrown6 years agoCommunity Champion
You need to set up the model as I stated to ensure all values for your Dept ID are included in the table visual:
If you check the DeptId values in the EmpDataFact, Id 500 is missing. There are no rows for this ID in this table (hence the sum of salaries is BLANK). If you use the DeptId field from the EmpDataFact, you will not see data for ID 500.
By establishing the structure as above, and use the fields from the Dept Table in your visuals, you enure that all IDs are present
As regards the values, you need to have an aggregation (SUM, DIVIDE, MAX, MIN...)
If you work with % values, it is probably a good idea to calculate the absolute values deriving from the % for aggregation purposes (In my book, a % in a row of a data table should be used to calculate a value in that row; for final results I would do the % calculation at the end after aggregations are done and over with).
If your values are percentages and ONLY HAVE ONE row per ID (per date period you are calculating against) related to this %, then you can use any of these aggregations (The total as a result is irrelevant since it is not a calcualtion - unless you want something specific shown- you can get rid of the total using ISINSCOPE to show BLANK). If you have more than one row per ID (per date period you are calculating against) as a percentage, you will either have to make calculations prior to aggregating (recommended) or choose which % you wish to be seen/used.
I have used SUM for both salaries and budget amounts, and this is what your data returns.
- jujiro-eb6 years agoHelper I
Hi Paul,
Thank you. You have answered my question. I was stuck on using "Don't summarize," for the budget numbers, as they are actually percentages and I did not want to sum them up, which would not make any sense. However, your suggestion, "you can get rid of the total using ISINSCOPE to show BLANK," will work fine for me.
Thanks again.