Forum Discussion

lukinfo's avatar
lukinfo
Frequent Visitor
2 years ago
Solved

DAX - difference olny in one column

Difference = var _pre=SUMX(FILTER(ALLSELECTED('Table'),[week]=MAX('Table'[week])-1&&[day]=MAX('Table'[day])),[sum]) var _diff=IF(ISBLANK(_pre),BLANK(),[sum]-_pre) return _diff Is it possible to ch...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi lukinfo ,

    Based on my testing again, it is impossible to display sum from columns 35 and 36.

    Please try the following methods as workaround:

    1.Create the measure to calculate.

     

    Difference = 
    VAR pre = SUMX(FILTER(ALLSELECTED('Table'),[week] = MAX('Table'[week])-1 && [day] = MAX('Table'[day])),[su])
    VAR SELE = MAX('Table'[week])
    RETURN
    IF(SELE = 36, [su] - pre, BLANK())

     

    2.Drag the measure into the table visual.

    3.The result is shown below. The difference and per can’t be invisible. Because the difference is measure.

    4.Power BI does not support this feature currently. You can also raise a new idea and add the comments there to make the drill through feature that maintain the previously selected row coming sooner.

    Home (microsoft.com)

     

    Best Regards,

    Wisdom Wu

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.