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
d_gullik
Frequent Visitor

Create dynamic measure depending on date hierachy

Hi


Is there any dynamic measure that can divide values depending on which date hierachy is selected?

I have workinghours in one column and instead of workinghours i want to show this value in Full-time equivalent (FTE). So for instance if I have 500 hours on daily basis. I divide this number with 7,6 which gives mee the FTE for our business per day. 500/7,6 = 65,7
But if I change the date hierachy to weeks instead of days I want this measure to be dynamic. So for a normal workweek this should be 500*5 (workdays) /(7,6*5) which should give me the same value. 
Is there any way to make this "divide" value  (7,6) dynamic depending on what is filtered (day, week, mont, year)?

 

(I have a seperat date calender which has a column for if the date is a workingday or not)

Thanks 🙂

1 REPLY 1
amitchandak
Super User
Super User

@d_gullik , you can use isinscope to switch measure and networkdays two get working days

 

IsInScope - Switch Measure at different levels: https://youtu.be/kh0gezKICEM

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

 

Power BI - Business day with and without using DAX Function NETWORKDAYS: https://www.youtube.com/watch?v=Qs03ZZXXE_c

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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