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
dmileusinch
New Member

Using Business Days as part of Formula or Measure

Hi,

 

I'm trying to automatically associate the business days for a particular month into a measure that with show the headcount requirment by month in a bar chart.  I want to use the defined Business Days for each month as part of the formula to derive the headcount (tickets effort/business days) per month

 

Table 1: Tickets

Table 2: Business Days

 

 

Headcount = (COUNT(Tickets[Account Name])*30/60)/LOOKUPVALUE(Business Days[Business Days],Business Days[Month],1)/6.25

 

The formula overall works except I can't get the third value in the lookupvalue (highlighted in red) to work unless I force a month number.  I've tried to take the date/time field in the Tickets table as an input or even create a colum with the month number for each row but none of that works.

 

Looking for ideas.

 

Thanks,

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

So because it is a measure, you would need the column in your visual and wrap the column reference with an aggregation like:

 

Headcount = (COUNT(Tickets[Account Name])*30/60)/LOOKUPVALUE(Business Days[Business Days],Business Days[Month],MONTH(MAX('Table'[Date])))/6.25



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.