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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. 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
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors