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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
MCMM
Frequent Visitor

ALL() filtered by slicers coming from different tables in AS

Hi all,

 

We are trying to create a calculation item called %sales that retrieves the difference between the first column and SALES OF PARTS for each row:

MCMM_5-1650292773568.png

It is working by now, but we need to apply some slicer filters to this measure. The problem is that those filters are columns from other tables (star schema datamodel). The whole model has been developed in Analysis Services but this would be a simplification of the relationships:

MCMM_1-1650292429195.png

 

The calculation group in columns has two items:

  • Last full year = SELECTEDMEASURE()
  • % SALES = DIVIDE ([P&L Mensual Actual],CALCULATE([SALES OF PARTS], ALL()))*100

[P&L Mensual Actual] is the measure we use in the matrix to replace the SELECTEDMEASURE() and [SALES OF PARTS] is the equivalent of the first row in the matrix.

 

Right now, the filters are applying only to the [Last full year] because of the ALL() Dax:

MCMM_2-1650292429204.png

 

How can we apply the slicers to %Sales if they come from different tables?

Thanks in advance.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@MCMM , You can try

% SALES = DIVIDE ([P&L Mensual Actual],CALCULATE([SALES OF PARTS], ALLselected()))*100

 

or

 

% SALES = DIVIDE ([P&L Mensual Actual],CALCULATE([SALES OF PARTS], ALL(Table[P&L structure])))*100

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@MCMM , You can try

% SALES = DIVIDE ([P&L Mensual Actual],CALCULATE([SALES OF PARTS], ALLselected()))*100

 

or

 

% SALES = DIVIDE ([P&L Mensual Actual],CALCULATE([SALES OF PARTS], ALL(Table[P&L structure])))*100

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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