The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Solved! Go to Solution.
Hi @Pranali_R
You can do this:
Measure = CALCULATE(
SUM(Table[marks]),ALL('Calendar'[year]), Table[grades]="Average")
Hi, @Pranali_R
you use AlLL() as a calculate modifier which remove filter context not ignore outer filter
for ignoring outer filter you must usr ALL() as a table function.
for more dive in ALL() function refer HERE
sumx(
filter(
all('table'), --- use as a table function so ignore outer filters
table[grades]="Average"
),
Table[marks]
)
or
CALCULATE(
SUM(Table[marks]),
FILTER(
all(Table),
Table[grades] = "Average"
)
)
Hi @Dangar332 ,
I understand this issue, But the thing is, my filter table and calendar table is different, so how should i accomodate the filter from 2 different tables and use ALL as a table function
Hi, @Pranali_R
try below
CALCULATE(
SUM(Table[marks]),
FILTER(
all('Calendar'),
X -- use column name which participate in relationship b/w tables(table and calender)
),
'table'[grades]="Average"
)
User | Count |
---|---|
11 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
24 | |
14 | |
14 | |
9 | |
7 |