Forum Discussion
mtussey
1 year agoNew Member
Column Total with All Other not equal.
Hello All, Please see I set a calculation to calculate the Top 8, but the one total isn't adding the "all other" (144K). Here is my measure via help on YouTube: Top Category Units = V...
- 1 year ago
Hi,
I have solved a similar question in the attached PBI file.
Hope this helps.
danextian
Super User
1 year agoHi mtussey
At the total level, CurrentProd evaluates to true because SELECTEDVALUE('Pseudo Supplier'[PrimarySupplier]) returns blank. As a result, only TopProdSales is returned. There's nothing in the logic that adds AllOtherSales back in. Try
IF (
NOT ( HASONEVALUE ( 'Pseudo Supplier'[PrimarySupplier] ) ),
[CY Units] -- or TopProdSales + AllOtherSales,
IF (
CurrentProd <> "All Other",
TopProdSales,
AllOtherSales
)
)