Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Snagalapur
Helper IV
Helper IV

Measure calculation based field parameter selection

Hi,

Please suggest how to mitigate error which i'm facing with measure-based field parameter selection

 

Field Parameter:

Scenario = {

    ("sum of Budget", NAMEOF('MEASURES_TABLE'[FY Forecast]), 0),

    ("sum of Forecast", NAMEOF('MEASURES_TABLE'[FY Budget]), 1)

}

 

Measure text =
VAR InitialAmount =
SWITCH (
        TRUE(),
        SELECTEDVALUE('Scenario'[Scenario]) = 0, [FY Budget],
        SELECTEDVALUE('Scenario'[Scenario]) = 1, [FY Forecast],
        BLANK() // default value if no condition is met
    )
VAR Result = InitialAmount - SUM('Table'[actual_op])
RETURN
    Result
 
ErrorSnagalapur_0-1746011589334.png

 

1 ACCEPTED SOLUTION
mh2587
Super User
Super User

Measure Text = //Try this
VAR InitialAmount =
    SWITCH (
        SELECTEDVALUE('Scenario'[Name]),
        "sum of Budget", [FY Budget],
        "sum of Forecast", [FY Forecast],
        BLANK()
    )
RETURN
    InitialAmount - SUM('Table'[actual_op])

Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



View solution in original post

1 REPLY 1
mh2587
Super User
Super User

Measure Text = //Try this
VAR InitialAmount =
    SWITCH (
        SELECTEDVALUE('Scenario'[Name]),
        "sum of Budget", [FY Budget],
        "sum of Forecast", [FY Forecast],
        BLANK()
    )
RETURN
    InitialAmount - SUM('Table'[actual_op])

Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.