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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
chatals
New Member

Calculate average for rows not included in slicer selections

I'm working on a clinical trials study. I have a column "Symptom Progression Rate (SPR)" which is a numeric value that describes the speed at which an illness is progressing. For study participants, I'm trying to compare an average of that value, when filtered by a one or more demographic slicers such as gender, age, and ethnicity as well as clinical slicers that includes medications and nutrients, to the average SPR for participants who are not included in the slicer selections.

 

For example, out of 1,500 study participants, if I select 400 male participants between the age of 40-50 that are taking a particular drug, I want to calculate the average SPR for the 1,100 that are not selected by any of the slicers.

 

Model

 

DIM
Participant Table
-Participant ID
-Age
-Gender
-Ethnicity

 

(1:1)

Slope Table
-Participant ID
-SPR

 

(1:Many)
Drug Table
-ParticipantID
-Name of Drug

 

(1:Many)
Nutrient Table
-Participant ID
-Nutrient Name

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @chatals ,

 

try like:

1. duplicate all dim tables and keep them disconnected, e.g

age2 = age

2.plot all slicers with columns from the dulpicate dim tables

3. wrap expressions with opposite condition like below in your meausre:

 

facttable[age]<MIN(age2[age])

    &&facttable[age]>MAX(age2[age])

 

facttable[gender]<>SELECTEDVALUE(gender2[gender])

 

View solution in original post

1 REPLY 1
FreemanZ
Super User
Super User

hi @chatals ,

 

try like:

1. duplicate all dim tables and keep them disconnected, e.g

age2 = age

2.plot all slicers with columns from the dulpicate dim tables

3. wrap expressions with opposite condition like below in your meausre:

 

facttable[age]<MIN(age2[age])

    &&facttable[age]>MAX(age2[age])

 

facttable[gender]<>SELECTEDVALUE(gender2[gender])

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.