Forum Discussion

frw's avatar
frw
Frequent Visitor
2 years ago
Solved

Calculating Single Measure from Different Start Dates

Howdy. I've been beating my head against the wall for a few days now, and I'd love some help if possible. I'm working with some call center data. The measure in question simply sums up the number of...
  • Syndicate_Admin's avatar
    2 years ago

    Remember that in Power BI, actions are very context-dependent.

    For the total row, the default process that performs DAX reruns the same formula as for each row in the table. But that's not what you want.

    Here's an example of a possible solution:

    Answered Since Release = 
    if( isinscope(tabla[Class Key])
    Result for Table Rows
    ,CALCULATE( SUM('User Call Details'[ACD Calls Answered]),
    FILTER(DatesTable,
    DatesTable[Date]>=max('Training Classes'[Training Release Date])))
    resultao para la row de total
    ,
    SUMX(
    summarize(
    board
    ,tabla[Class Key]
    , 'Training Classes'[Training Release Date]
    ,"Total", CALCULATE( SUM('User Call Details'[ACD Calls Answered]),
    FILTER(DatesTable,
    DatesTable[Date]>=max('Training Classes'[Training Release Date])))
    )
    , [Total]
    )
    )

    If you liked the answer, a kudo helps