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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.