Forum Discussion

Fabio747's avatar
Fabio747
Copper Contributor
Jun 01, 2023
Solved

Pivot data filtered by another table column

Hello, I have two tables: 1) table "Data" with the hours provided per month 2) table "Quarter" with all the months of the year in wich for each month there is the number of working days that I nee...
  • SergeiBaklan's avatar
    SergeiBaklan
    Jun 09, 2023

    Fabio747 

    Perhaps as

    FTE-CS :=
    SUMX (
        VALUES ( Quarters[Q] ),
        [ORE_CS per Hour] / [Somma di NUM_GG_STD]
    )
    

    where

    ORE_CS per Hour :=
    SUMX (
        FactData,
        FactData[ORE_CS] / FactData[DayWorkHours]
    )
    

     and I added DaysWorkHours calculated columns to convert texts in HoursDays into numbers. If in HoursDays will be numbers that's not necessary.

Resources