Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Correct total sum

Hello,  I am having trouble with a formual its simple just multiplying Total - Actual column by the Target % to give me the Total # per below table in red. The sum however is not working its multipl...
  • v-zhangti's avatar
    3 years ago

    Hi, Anonymous 

     

    You can try the following methods.

    Target # = 
    IF(HASONEVALUE('Table'[Date]),[Target %]*[Total - Actual],SUMX('Table',[Target %]*[Total - Actual]))

    IF(HASONEVALUE()) can control the output of Total.

    Solved: wrong total of measure - Microsoft Power BI Community

     

    Best Regards,

    Community Support Team _Charlotte

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