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
erihsehc
Helper III
Helper III

allselected function not working

rank testing4.JPGrank testing8.JPGrank testing6.JPGrank testing7.JPG

 

hi, for the above tables, using the allselected function to get the sum of sales amount from sheet1. I would expect that when I select different division on the slicer from sheet1, the selected sales amount would change. However, it does not work. Would expert help on doing this task? thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,

You are creating a calculated column and these are not re-calculated when you interact with slicers in your report.

 

To be able to do this kind of dynamic calculation you need to create a measure instead of the calculated column.

 

If all you are trying to do is to calculate the sum of sales for your table you don't need a complicated measure. Just add the customer from your Fact table to rows of your table and then add Sales to your values and it will give you the sum of sales with respect to filters and slicers coming from the same table.

 

Br,

Magnus 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi,

You are creating a calculated column and these are not re-calculated when you interact with slicers in your report.

 

To be able to do this kind of dynamic calculation you need to create a measure instead of the calculated column.

 

If all you are trying to do is to calculate the sum of sales for your table you don't need a complicated measure. Just add the customer from your Fact table to rows of your table and then add Sales to your values and it will give you the sum of sales with respect to filters and slicers coming from the same table.

 

Br,

Magnus 

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.