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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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