Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
This is my sample table :
Student | Subject | Marks |
A | English | 1 |
B | English | 2 |
C | English | 3 |
I have two separate slicers on my page student and subject and selected Student "A" & Subject "English"
Student | Subject |
A | English |
Excepted Result:
Student | Subject | Student A Marks | Average of B & C MARKS |
A | English | 1 | 2.5 |
Please suggest a Dax formula for this requirement.
Solved! Go to Solution.
@nagendrakumar Try this:
Measure =
VAR __Student = MAX('Table'[Student])
VAR __Subject = MAX('Table'[Subject])
VAR __Table = FILTER(ALL('Table'), [Student] <> __Student && [Subject] = __Subject)
RETURN
AVERAGEX(__Table,[Marks])
@nagendrakumar Try this:
Measure =
VAR __Student = MAX('Table'[Student])
VAR __Subject = MAX('Table'[Subject])
VAR __Table = FILTER(ALL('Table'), [Student] <> __Student && [Subject] = __Subject)
RETURN
AVERAGEX(__Table,[Marks])
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
19 | |
14 | |
10 | |
7 |