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.
Hi,
I need to calculate ROA for each company and then sum those values ignoring slicer filter for companies. I just need one number that will not change while using filter for companies. I tried ALL, REMOVEFILTERS, ... nothing worked. Can anybody help me?
This is what I got:
ROA =
var income = CALCULATE(SUM(Table[NUM_VALUE]), FILTER(Table, Table[C_EP] = "BCE")
var assets= CALCULATE(SUM(Table[NUM_VALUE]), FILTER(Table, Table[C_EP] = "CE")
return income/assets
TOTAL_ROA =
var p = MAX(Table[PERIOD])
var a = SUMX(
SUMMARIZE(Table,Table[SUBJECT], "ROA",CALCULATE(Table[ROA], Table[PERIOD] = p)),
CALCULATE(Table[ROA], Table[PERIOD] = p))
return a
Solved! Go to Solution.
Hi @EricaD
Try this measure
TOTAL_ROA =
var d = MAX(TABLE1[PERIOD])
RETURN
SUMX(
SUMMARIZE(
ALL(Table1[SUBJECT]),
Table1[SUBJECT],
"ReturnOnAssets",
CALCULATE(
[ROA],
Table1[PERIOD] = d
)
),
[ReturnOnAssets]
)
Hi @littlemojopuppy, thanks for your quick response. I can give you .pbix and also .xlsx: Files
I just want TOTAL_ROA to be 469% no matter what I select in filter for subject.
Hi @EricaD
Try this measure
TOTAL_ROA =
var d = MAX(TABLE1[PERIOD])
RETURN
SUMX(
SUMMARIZE(
ALL(Table1[SUBJECT]),
Table1[SUBJECT],
"ReturnOnAssets",
CALCULATE(
[ROA],
Table1[PERIOD] = d
)
),
[ReturnOnAssets]
)
@littlemojopuppy Thank you soooo much, you literally saved my life! 😄
And I really don't know why I haven't try that one.
Hi @EricaD. Very strange that ALL and REMOVEFILTERS didn't work... Can you provide some sample data to work with?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
144 | |
72 | |
62 | |
52 | |
48 |
User | Count |
---|---|
208 | |
89 | |
61 | |
59 | |
57 |