Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

total doesnt work

Hi,

I have a PBI report (SQL Service Analysis direct connection) with a table showing number of surgeries by room, and slicer for RoomFilter.



table example:

SurgeryRoom NumOfSurgeries

a 1

b 1

c 1

total: 3



when I choose 2 rooms in the slicer, the total doesn't change.

table example:

SurgeryRoom NumOfSurgeries

a 1

b 1

total: 3



when i expect the total to be 2..



can you help with this problem?

thank you :)

8 Replies

  • themistoklis's avatar
    themistoklis
    Community Champion

    Anonymous

     

    Try this formula:

     

    Measure = SUMX (
                    VALUES ( Table[SurgeryRoom] );
                    CALCULATE ( SUM ( Table[NumofSurgeries] ) )
                )
    • Anonymous's avatar
      Anonymous
      Not applicable
      thank you for you answer :)
      where?
      the total is automatic with the table..
      • themistoklis's avatar
        themistoklis
        Community Champion

        Anonymous

         

        Createa new Measure and add the formula.

         

        Right click on the table on the left hadn side --> New Measure

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

    Anonymous,

     

    Click [SurgeryRoom] and [NumOfSurgeries] to the chart and click NumOfSurgeies-> Sum, then create a slicer based on [SurgeryRoom].

     

     

     

    The result is like below:

     

     

    Regards,

    Jimmy Tao