Forum Discussion

michaelccdf's avatar
michaelccdf
Icon for Helper I rankHelper I
6 years ago
Solved

Calculated field on dimension table from fact table

I have two tables, Attendance and Students.    Attendance Date Period CourseID StudentID IsAbsent 2020-01-01 1 Math 1 0 2020-01-01 1 Math 2 1 2020-01-01 2 Science 1 1 ...
  • Icey's avatar
    Icey
    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.