Forum Discussion
Calculated field on dimension table from fact table
- 6 years ago
Hi michaelccdf ,
I know what you want, but the values of calculated columns do not change with different filters. They are fixed, but measures are not. So, creating Measures is the best option.
Please check if this could meet your requirements.
1. Create Measures.
AbsentPeriod = SUM(Attendance[IsAbsent])Absenteeism Level = IF ( [AbsentPeriod] >= 1, "High Absenteeism", "Low Absenteeism" )2. Put "Absenteeism Level" measure on the visuals you want to filter.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi michaelccdf ,
Based on my understanding, it is not necessary to create calculated columns or measures in your scenario.
Try this:
Create a table visual like so:
Then, you can keep filters working.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- michaelccdf6 years ago
Helper I
Thanks, this table visual is sort of what I am trying to get to but, I then I want to go a step further. For example, I would like to group the students based on the SUM(IsAbsent) Column into High Absenteeism and Low Absenteeism students and then use this column to filter the Attendance table.
This situation is similar to having a sales and a products table: I would want to have a total sales column in the products table so that I could then group them into best selling, average selling and worst selling groups and then filter the sales table with these groups.
- Icey6 years ago
Community Support
Hi michaelccdf ,
I know what you want, but the values of calculated columns do not change with different filters. They are fixed, but measures are not. So, creating Measures is the best option.
Please check if this could meet your requirements.
1. Create Measures.
AbsentPeriod = SUM(Attendance[IsAbsent])Absenteeism Level = IF ( [AbsentPeriod] >= 1, "High Absenteeism", "Low Absenteeism" )2. Put "Absenteeism Level" measure on the visuals you want to filter.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.