Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

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 8
v-yuta-msft
Community Support
Community Support

@Anonymous,

 

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

 

3.PNG 

 

The result is like below:

1.PNG2.PNG 

 

Regards,

Jimmy Tao

 

 

themistoklis
Community Champion
Community Champion

@Anonymous

 

Try this formula:

 

Measure = SUMX (
                VALUES ( Table[SurgeryRoom] );
                CALCULATE ( SUM ( Table[NumofSurgeries] ) )
            )
Anonymous
Not applicable

thank you for you answer 🙂
where?
the total is automatic with the table..

@Anonymous

 

Createa new Measure and add the formula.

 

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

Anonymous
Not applicable

It doesnt exists in analysis connection ..

@Anonymous,

 



It doesnt exists in analysis connection ..

 So you are using power bi live connection mode to connect to SSAS, right? If you are, you can create measure using SUM in SSAS side. 

 

Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Right, Im using live connection.
The "NumberOfSurgeries" is a measure in SSAS- its distinct count of surgery-code.
When im adding it to the table it works fine. the total is fine. when im adding a slycer/filter- the total doesnt react and the total keeps showing the total of all the rooms.
by the way, when im processing the cube and refresh the report- the total shows the right number. but when i add a room and remove ir from the slycer - the total shows the total of all the rooms agin

@Anonymous,

 

In the format pane, select don't summarize.

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.