Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
Hi,
I need some help on Power BI please. I have got three tables as FY_PREV , FILTER TABLE & S90(2). The relationship between FY_PREV , FILTER TABLE in the actual working file is inactive because it otherwise gives the error message for its ambiguous path and there is no relationship with S90(2) table. Then in FY_PREV table i have created two measures as
Solved! Go to Solution.
Hi ,I think it's better If you divide this into few parts
first calculated sum of balance for FL P1
SumBalance_Flp1 =
CALCULATE(
SUM(fy_prev[balance]),
fy_prev[conditional_column] = "FL P1"
)
then sum of balance for ML P1
SumBalance_mlp1 =
CALCULATE(
SUM(fy_prev[balance]),
fy_prev[conditional_column] = "ML P1"
)
and the value coming from s90 table
S90 value =
CALCULATE(
SUM('S90 (2)'[WRITTEN OFF BAL]),
'S90 (2)'[DOM] = "MPA",
'S90 (2)'[P_TYPE] = "JDS Loans P2"
)
and then next you can create the the measure you want
Measure_6new =
VAR S17 = 33726
VAR S16 = 4135
RETURN
[SumBalance_mlp1] + [S90 value] + S17 + S16Total Amount outstanding =
VAR S17 = 33726
VAR S16 = 4135
RETURN
[S90 value] + [SumBalance_Flp1]+ S17 + S16
Hi ,I think it's better If you divide this into few parts
first calculated sum of balance for FL P1
SumBalance_Flp1 =
CALCULATE(
SUM(fy_prev[balance]),
fy_prev[conditional_column] = "FL P1"
)
then sum of balance for ML P1
SumBalance_mlp1 =
CALCULATE(
SUM(fy_prev[balance]),
fy_prev[conditional_column] = "ML P1"
)
and the value coming from s90 table
S90 value =
CALCULATE(
SUM('S90 (2)'[WRITTEN OFF BAL]),
'S90 (2)'[DOM] = "MPA",
'S90 (2)'[P_TYPE] = "JDS Loans P2"
)
and then next you can create the the measure you want
Measure_6new =
VAR S17 = 33726
VAR S16 = 4135
RETURN
[SumBalance_mlp1] + [S90 value] + S17 + S16Total Amount outstanding =
VAR S17 = 33726
VAR S16 = 4135
RETURN
[S90 value] + [SumBalance_Flp1]+ S17 + S16
Hi KushanNa,
Based on your calculate statement i used it in each variable separately and it did work. Thanks a lot for your help.
if you need only two mesures you can try this out
Measure_6new =
VAR S17 = 33726
VAR S16 = 4135
VAR SumBalance_mlp1 =
CALCULATE(
SUM(fy_prev[balance]),
fy_prev[conditional_column] = "ML P1"
)
VAR S90_value =
CALCULATE(
SUM('S90 (2)'[WRITTEN OFF BAL]),
'S90 (2)'[DOM] = "MPA",
'S90 (2)'[P_TYPE] = "JDS Loans P2"
)
RETURN
SumBalance_mlp1 + S90_value + S17+S16Total Amount outstanding =
VAR S17 = 33726
VAR S16 = 4135
VAR SumBalance_Flp1 =
CALCULATE(
SUM(fy_prev[balance]),
fy_prev[conditional_column] = "FL P1"
)
VAR S90_value =
CALCULATE(
SUM('S90 (2)'[WRITTEN OFF BAL]),
'S90 (2)'[DOM] = "MPA",
'S90 (2)'[P_TYPE] = "JDS Loans P2"
)
RETURN
SumBalance_Flp1 + S90_value + S16 +S17
and if you want to make it work for any value in conditional_column you can use this
S90 value =
CALCULATE(
SUM('S90 (2)'[WRITTEN OFF BAL]),
'S90 (2)'[DOM] = "MPA",
'S90 (2)'[P_TYPE] = "JDS Loans P2"
)
new measure =
VAR S17 = 33726
VAR S16 = 4135
RETURN
SUM(FY_PREV[BALANCE]) + [S90 value] + S17 + S16
Hi @samioberoi
Try this, ensure your lookup values are numeric and replace blanks with 0. For example, modify your measure as follows:
Total_Amount_outstanding =
VAR S17 = 33726
VAR S16 = 4135
VAR cat_Balance =
IF(
ISBLANK(
VALUE(
LOOKUPVALUE(
'S90 (2)'[CAT BALANCE],
'S90 (2)'[DOM], "MPA",
'S90 (2)'[P_TYPE], "JDS LOANS P1"
)
)
),
0,
VALUE(
LOOKUPVALUE(
'S90 (2)'[CAT BALANCE],
'S90 (2)'[DOM], "MPA",
'S90 (2)'[P_TYPE], "JDS LOANS P1"
)
)
)
VAR Adjustment_payment =
IF(
ISBLANK(
VALUE(
LOOKUPVALUE(
'S90 (2)'[Adjustment Pay],
'S90 (2)'[DOM], "MPA",
'S90 (2)'[P_TYPE], "JDS LOANS P1"
)
)
),
0,
VALUE(
LOOKUPVALUE(
'S90 (2)'[Adjustment Pay],
'S90 (2)'[DOM], "MPA",
'S90 (2)'[P_TYPE], "JDS LOANS P1"
)
)
)
RETURN
S17 + S16 + cat_Balance + Adjustment_payment
This ensures that LOOKUPVALUE returns numeric values (using VALUE) and that blanks are replaced with 0 so the summation works correctly.
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Hi VahidDM,
Thanks for trying to help. I tried your measure, but it doesn't work either. I don't know where the issue is. Were you able to access the sample data PBI file through the link?
Regards
Yes, please send it to me the PBIX file
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!