Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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])
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
18 | |
15 | |
12 | |
11 | |
8 |
User | Count |
---|---|
24 | |
18 | |
12 | |
11 | |
10 |