Forum Discussion

Pikachu-Power's avatar
Pikachu-Power
Impactful Individual
1 year ago
Solved

wrong total value in table

Hello Power BI Forum,

 

I have a table with the columns TARIFF, SEGMENT, ARTICEL and the following measure to calculate with right total sum:

 

Measure =
IF(
  HASONEVALUE(TABLE[TARIFF]),
  [Deviation_eur],
  SUMX(  
    ADDCOLUMNS(
      SUMMARIZE(
        TABLE,
        TABLE[TARIFF], TABLE[SEGMENT], TABLE[ARTICEL]
      ),
      "Total", [Deviation_eur]
    ),
    [Total]
 )
)
 
Now i put a slicer TABLE[SEGMENT] on the canvas and get a wrong total value when i filter for example TABLE[SEGMENT] = B. 2300 - 200 results in 1000.  Does someone see where the error is??
 
Many thanks for ideas.
  • Hello,

     

    HASONEVALUE(TABLE[TARIFF]) && HASONEVALUE(TABLE[SEGMENT]) && HASONEVALUE(TABLE[TARTICEL])

     

    instead of  

     

    HASONEVALUE(TABLE[TARIFF])

     

    helped.

     

    Many thanks. 

     

3 Replies