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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
dataanalyst123
New Member

Unable to show total on store level when other columns in table is filtered

Hi,

When figuring out a seemingly simple solution I ran into issues with creating a new subset of the data.

The goal is to work with a new subset

- X means that this column is filtered in the sidebar/filter pane. These filters are mostly static but are able to be changed in the future.

Store NameKonzernSales Org IDOps Sub Channel NameOps Sub ChannelStore ClusterSales Qty
a2    1000
b2    4000
c2X   1500
d3XX  3000
e3XXX 1500
f3XXXX1000
g4XXXX4000
h5XXXX1500
i5XXXX3000
j5XXXX500
      Total
21000

 

The goal of the measure was to do the following.

Store nameKonzernSales qtySales Qty all customers
f3100010000
g4400010000
h5150010000
i5300010000
j550010000

Sales Qty all customers should then only sum the values for the new subset

(so only the stores that remain after filtering -> See stores 6-10)


So far the only result was a measure the total sales qty of ALL stores (21.000)

 

The relation between store and sales is based on d_store.

1 ACCEPTED SOLUTION
dharmendars007
Super User
Super User

Hello @dataanalyst123 

 

To ensure the measure dynamically reflects the filtered subset of stores from the slicers, you need to use CALCULATE() with ALLSELECTED() to respect the filters applied from your visuals or slicers.

 

Sales Qty all customers =
CALCULATE(SUM('Sales Table'[Qty]),ALLSELECTED('d_Store'))

 

This measure ensures that the sum of Qty only accounts for the stores remaining after filtering.

 

If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

 

 

View solution in original post

1 REPLY 1
dharmendars007
Super User
Super User

Hello @dataanalyst123 

 

To ensure the measure dynamically reflects the filtered subset of stores from the slicers, you need to use CALCULATE() with ALLSELECTED() to respect the filters applied from your visuals or slicers.

 

Sales Qty all customers =
CALCULATE(SUM('Sales Table'[Qty]),ALLSELECTED('d_Store'))

 

This measure ensures that the sum of Qty only accounts for the stores remaining after filtering.

 

If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.