Forum Discussion

mic_rys's avatar
mic_rys
Icon for Helper I rankHelper I
2 years ago
Solved

How to Sum values in the same section - including filtering

Hi, I have a problem with the DAX mesaure and I'm looking for the dax master 🙂 my table: Customer Task ID TabName FieldName Value txt Value int A 1 1_1 PromoName 1 Cars   A 1 ...
  • FreemanZ's avatar
    2 years ago

    hi mic_rys ,

     

    not sure if i really get you, please try:

    1) plot a slicer with data[Value txt];

    2) plot a table visual with data[customer] and/or data[task ID] and a measure like:

    measure = 
    VAR _txt = SELECTEDVALUE(data[Value txt])
    VAR _tabname = MAX(data[TabName])
    VAR _result =
    CALCULATE(
        SUM(data[Value int]),
        ALL(data[Value txt]),
        FILTER(
            ALL(data[TabName]),
            data[TabName]=_tabname
        )
    )
    RETURN _result

     

    it worked like: