Forum Discussion

sdb_utd's avatar
sdb_utd
Frequent Visitor
6 years ago
Solved

Total meausre problems

Sample PBIX - https://www.dropbox.com/s/vob4ngqfkxt3ss5/TeaSugar_Sample.pbix?dl=0   I've read several posts on this, but it's still not working for me. I'm looking at an invoice table with products...
  • ImkeF's avatar
    6 years ago

    Hi sdb_utd ,

    you have to iterate over the VALUES of the Product-column like so:

     

    Weighted Change =
    if (HASONEFILTER(('Table'[Product])),
    [Change]*[Percent of total],
    SUMX(VALUES('Table'[Product]),[Change]*[Percent of total])
    )