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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
android1
Post Patron
Post Patron

What if?

 

This Measure returns the amount of wages paid to employees who have been employed >= the number of weeks selected in the Wks Employed slicer.

 

The second slicer, 'What if Wage increases by'  shows what the wages would be if they were increased by selected value.

 

What if Wages ? = CALCULATE([Pay Finalised] * [Wage Increase Value], FILTER(CarersList,[Wks of Employment _] >= 'Wks Employed'[Wks Employed Value]))

 

What I'm trying to show is the total What if Wages ?  if the selected What if Wage increases by is only applied to people who have been employed >= the number of Wks Employed slicer. So I need to show What if Wages ? regardless of how many weeks employed but only apply the increase to those employed >= 23 for example (in the pic below).

2018-08-12 08_25_36-Wages Invoiced WIP 2 - Power BI Desktop.png

1 REPLY 1
Zubair_Muhammad
Community Champion
Community Champion

Hi @android1

 

May be

 

What if Wages ? =
SWITCH (
    TRUE (),
    SELECTEDVALUE ( 'Wks Employed'[Wks Employed Value] )
        = SELECTEDVALUE ( CarersList[Wks of Employment _] ), CALCULATE (
        [Pay Finalised] * [Wage Increase Value],
        FILTER (
            CarersList,
            [Wks of Employment _] >= 'Wks Employed'[Wks Employed Value]
        )
    ),
    [Pay Finalised]
)

 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.