Forum Discussion

jrscaletta's avatar
jrscaletta
Icon for Helper II rankHelper II
7 years ago
Solved

SUM GROUP BY PERSON and LABOR DAY

Hi all.   I have this structure: CALENDAR table: Date Labor Day: Shows 1 if is labor day TASK table: Userid Task Date Hours USERS table: Userid Username RESERVEDTIMEbyUser TABLE Userid Expecte...
  • Anonymous's avatar
    Anonymous
    7 years ago

    Hi jrscaletta ,

     

    After going through your pbix. I did the following

     

    1. Created a measure

                                        TotLabourDay = SUM(Calendario[LaborDay])

     

    2. Replaced the field in the Card Visual with this.

     

    3.  Created another measure

         

    TotByUser = CALCULATE(
                SELECTEDVALUE(PrevisionDedicacion[Expected h support]) *
                             [TotLabourDay]
                       )
     
    Added this measure to your table visual.
    4. In the table visual set the visual filtering to Hours is Not blank
     
    Cheers
     
    CheenuSing