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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How do i show employees who left or join the company in any of the month. For eg. Nov 2021.

Hi everyone, I have a question. In my visualization chart, i am showing from Jan 2022 to Jan 2022. In the chart, i have selected Nov 2021. Is there a way to show which employees left the company on Nov 2021. Likewise for those who joined the company on Nov 2021 or any of the other months.  It is showing nothing on my table. Is it supposed to be in this way?

Javierphang_2-1643382765163.png

Javierphang_3-1643382833867.png

 

 

 

 

4 REPLIES 4
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

Based on your description, I think we can refer to the following formula.

M_reult =
VAR a_in =
    CALCULATE (
        MAX ( 'Table'[Inflow] ),
        SELECTEDVALUE ( 'Table'[Date] ) = 'Table'[Date]
    )
VAR b_out =
    CALCULATE (
        MAX ( 'Table'[Outflow] ),
        SELECTEDVALUE ( 'Table'[Date] ) = 'Table'[Date]
    )
RETURN
    "inflow:" & a_in & ";" & "outflow:" & b_out

vhenrykmstf_0-1643879049548.png


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your feedback.


Best Regards,
Henry


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

Anonymous
Not applicable

Hi Sir, thank you for your response. Greatly appreciated.

These are the columns used to generate the chart.

Javierphang_0-1643937392437.png

 

So i have 3 calculated measures

- Inflow 

Code:  Inflow = 0 + CALCULATE(COUNTROWS(HeadCount),HeadCount[In/Out] = "Inflow")

-Outflow 

Code: Outflow = 0-CALCULATE(COUNTROWS(HeadCount),HeadCount[In/Out] = "Outflow")

Net movement

Code: Net Movement = 'MeasureFolder'[Inflow] -(0-('MeasureFolder'[Outflow]))

 

However, is there a way to see the specific names of the employees who left the company when i click on outflow in the chart? Can be a table or anything. This is because i have created a slicer and it shows me the list of employees who left the company, likewise for those who joined the company. Thanks. 

Tahreem24
Super User
Super User

@Anonymous Will it possible to share the dummy data for your requirement to understand your issue?

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not applicable

I cant send you the powerbi report, however, i can send you the dummy excel file. 

I have managed to configure by adding slicer and it gets the result i want. However, is there a way to just manually click it on the graph instead? Thanks. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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