Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

create a calculated column for date count under a date slicer

If we have all the absence date for each person, and we have a column that showing the frequency(or count) of the person's absence date with a date slicer. How can I create a calculated column shows "Yes" if the count of frequency is greater than 2 under the date range? 

The problem I am having is, the Yes or No column is not controlled by the absence date slicer. For example, if this person has more than 2 absent in the whole data set, the column is showing "Yes" no matter what time range it is.

How can I solve this? Thank you! 

 

  • dax's avatar
    dax
    6 years ago

    Hi hewwo,

    You could refer to my sample to see whether this is what you want, if this is not what you want, please correct me and inform me more detailed information(such as your sample data and your expected output).

    Best Regards,
    Zoe Zhi

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

4 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you for your reply. Is it possible to show if this person has a absences more than twice a week under the time range?

      • dax's avatar
        dax
        Icon for Community Support rankCommunity Support

        Hi hewwo,

        You could refer to my sample to see whether this is what you want, if this is not what you want, please correct me and inform me more detailed information(such as your sample data and your expected output).

        Best Regards,
        Zoe Zhi

        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • dax's avatar
    dax
    Icon for Community Support rankCommunity Support

    Hi hewwo,

    According to your description, it seems that you want to create calculated column based on slicer, right? If so, I think you can't achieve this goal, because calculated column can't be controlled  by  slicer, you need to use measure to achieve this goal.

    In addition, did you want to show a column value to " yes" when absent amount>2? If possible, could you please inform me your sample data and expected output? Then I will help you more correctly.


    Please do mask sensitive data before uploading.

    Thanks for your understanding and support.
    Best Regards,
    Zoe Zhi

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.