Forum Discussion

Pikachu-Power's avatar
Pikachu-Power
Impactful Individual
3 years ago

ISINSCOPE in matrix question

Hello,

 

for a matrix i want to vanish one row and just want to show the total. C i calculateted as A - B: 

 

 

I tried something like

 

Measure =

IF ( ISINSCOPE ( TABLE ( Column2 ) ) && MAX ( TABLE ( Column2 ) ) = "C",

    BLANK ( ),

    [value] )

 

where value is a measure who creates a new table with UNION and the difference C = A - B. 

 

Result is that Row C vanish completely. Some ideas where the mistake is?

 

Many thanks.

 

Best regards

Power Pikachu

 

PS: Normally we have 12 month and a total. I unintentionally used December as a total. Hope it doesnt matter 🙂

2 Replies

  • Pikachu-Power , You have to try measure like

     


    Measure =

    IF ( ISINSCOPE ( TABLE[Column2] ) && MAX ( TABLE[Column2 ] ) = "C",

    calculate([Measure],TABLE[Column2 ] ="A") - calculate([Measure],TABLE[Column2 ] ="B")

    [Measure] )

    • Pikachu-Power's avatar
      Pikachu-Power
      Impactful Individual

      Hello,

       

      what is [Measure] in your DAX code? My created Measure or maybe [value]? I missing something like BLANK( ). Normally the difference is a little more complicated with dummy values and UNION. I dont know if if i can pull out from [value].