Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

Card Visual

I want to use the Card visual to show the total hours worked for support calls for when a category is selected e.g., Software, Hardware, etc..   Each request has an ID assigned, however, there may be multiple entries for the same request.    Example, Request ID#353 has 12 hours recorded on 10/1/2021 and another entry on 10/15/2021 for 2 hours.    Total hours worked for Request ID#353 is 14 Hours.  How can I use the Card visual to show total hours?   Or is there another visual I should use? 

9 Replies

  • v-xiaotang's avatar
    v-xiaotang
    Community Support

    Hi Anonymous 

    Thanks for reaching out to us.

    Is there any relationship between the 2 tables?

     

    If it has one to many relationship, then you can set the summarization of field [hours] to Sum, then put the field [hours] into Card visual.

    If there's no relationship, you can create this calculated measure and put it in Card,

    Total Hours = 
    CALCULATE(SUM('support calls'[hours]),FILTER('support calls','support calls'[category ]=SELECTEDVALUE(Category[category ])))

     

    Best Regards,

    Community Support Team _Tang

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