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

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

Reply
anna-lee
Helper I
Helper I

Finding actual numbers with varying dates status'

Hi,

 

I'm trying to calculate the sum of the projected total value for each employees across several regions. The aim is to sum the Salary column where the Status column is active up until the Salary value for a given active Month is 0, then give the inactive Salary value afterwards for each Employee and Region. The 'Projected Total Value' column is what my end goal is whether it be a measure or calculated column. 

Sample Data 

2 REPLIES 2
Abhinav054
Helper I
Helper I

hii, once try this DAX expression

Projected Total Value = CALCULATE( SUM(
                                             CASE
                                                                WHEN Status = "Active" THEN Salary
                                             ELSE
                                                     CASE WHEN StatusMonth <= LastActiveMonth THEN 0 ELSE InactiveSalary                                                  END
                                              END),
                                                    FILTER( table,
                                                                   table[Status] = "Active")
)

@Abhinav054 
Hello! Thank you for your response. I think I'm missing a couple of steps prior as you're referencing LastActiveMonth and Inactive Salary. Do you mind sharing the pbix file?

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.