Forum Discussion

IF's avatar
IF
Post Prodigy
5 years ago
Solved

Measure calculation with # value

Hi

I have a table which contains similar info:

Slicer1Slicer2Slicer3Value

#A07.202012
#B07.202014
C1A07.202021
C2A07.202023
D1B07.202032
D2B07.202034
#A08.202042
#B08.202044
C1A08.202055
C2A08.202035
D1B08.202046
D2B08.202065

 

I have 3 slicers. For example; when I select slicer3 as "08.2020" and Slicer2 as "B", I want to see value 44. I could not do it. I wrote a dax Measure=SUM(Table[Value]) but It calculates 44+46+65. How could I do it?

 

Best

 

  • hi  IF 

    What is the logic of your expected output?

    for case 1, when you select slicer3 as "08.2020" and Slicer2 as "B", not select Slicer1, you want to see value 44 (that means you just want to see "#" in slicer1 )

    but for case 2, If I use slicer2 it works, but it doesn't work when I use slicer1. what is your logic of this case?

     

    Regards,

    Lin

6 Replies

    • IF's avatar
      IF
      Post Prodigy

      Hi,

      Thanks for sharing, but I don't know how to do it in this scenario.

      Best

  • IF , While this working correctly, I doubt you need # Only 

     

    calculate(sum(Table[Value]) , filter(Table, Table[Slicer1]= "#"))

    or

    calculate(sum(Table[Value]) ,  Table[Slicer1]= "#")

     

    Other should filter automatically

    • IF's avatar
      IF
      Post Prodigy

      Hi,

      Thanks but it doesn't work. If I use slicer2 it works, but it doesn't work when I use slicer1. It always shows 86 if nothing is selected in slicer2.

      • v-lili6-msft's avatar
        v-lili6-msft
        Community Support

        hi  IF 

        What is the logic of your expected output?

        for case 1, when you select slicer3 as "08.2020" and Slicer2 as "B", not select Slicer1, you want to see value 44 (that means you just want to see "#" in slicer1 )

        but for case 2, If I use slicer2 it works, but it doesn't work when I use slicer1. what is your logic of this case?

         

        Regards,

        Lin