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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Help with DAX measure

@amitchandak , @v-luwang-msft 
Hi guys,
I am new to powerbi and need some help writing DAX. 
I need to add a calculated column with total inactive employee on that date where result would exclude active employe on that date (count of active employee (i.e 844) minus distinct count of employee ID from annual leave table) 
The list is given in Annual leave table. and Total Active employee is in Driver's detail table. Could 

you please help with this.

Thanks.  

 

Screenshot (12).png 

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous 

You can refer to the blog below to learn how to provide sampe in this case . And then upload your sample . 

https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...

 

Best Regards,
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

@amitchandak Hi amit ! How can I share the sample data file (.pbix), there isnt any attachment option.

amitchandak
Super User
Super User

@Anonymous ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

for measure we do it like

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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