Forum Discussion

pankajgurav's avatar
pankajgurav
Regular Visitor
1 year ago
Solved

Total Row counts by category

Hi I have the data shown below: Which holds the user's timesheet data. Each user has 52 timesheets per year, and it shows how many are submitted on time or not. For total timesheet count, i have use...
  • quantumudit's avatar
    1 year ago

    Hello pankajgurav 

    Thank you for providing a sample dataset and demonstrating the expected results. The following DAX measures can be used

     

    To calculate the total timesheets:

    Timesheet Count = SUM(Timesheets[No of timesheet])

     

    To calculate total timesheet by username (irrespective of sumbitted or, not)

    Total Timesheets = 
    CALCULATE(
        [Timesheet Count],
        ALL(Timesheets[Timesheet Submitted on Time])
    )

     

    The following GIF demonstrates various slicer selections; however, total timesheet count remains unaffected by the selection of "Y" or "N".

     

     

    Best Regards,
    Udit

    If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
    Appreciate your Kudo 👍

    🚀 Let's Connect: LinkedIn || YouTube || Medium || GitHub
    Visit My Linktree: LinkTree

     

    Proud to be a Super User