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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Need help with Dax

Hi,

I need help on Dax for calculating the number of positions that are carryforwarded to the next year. I am getting the wrong value.

The Dax which i am using is 

carry = CALCULATE(
COUNTX(
FILTER(
TA,[Open Date (DD-MMM-YYYY)]<=MAX(Dim_Date[Date]) &&
ISBLANK([Joining Date MM/DD/YYYY]) ||
[Joining Date MM/DD/YYYY] > MAX(Dim_Date[Date])), TA[Req ID]),
FILTER(Dim_Date, Dim_Date[Year]=(Dim_Date[Year]-1))).

I have date table and a table with the Name TA where i have open date and Joining date . I am trying to calculate the number of positions that had carried over to the next year.

Please help.

2 REPLIES 2
Anonymous
Not applicable

Hi  @Anonymous ,

You can try modifying dax to the following:

carry  =
CALCULATE(
COUNTX(
    FILTER(ALL(TA),
    AND(
    [Open Date (DD-MMM-YYYY)]<=MAX('Dim_Date'[Date]),ISBLANK('TA'[Joining Date MM/DD/YYYY]))
    ||
    'TA'[Joining Date MM/DD/YYYY]>MAX('Dim_Date'[Date])),'TA'[Req ID]),
    FILTER(ALL('Dim_Date'),'Dim_Date'[Year]='Dim_Date'[Year]-1))

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , refer if this blog can help

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.

August 2025 community update carousel

Fabric Community Update - August 2025

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