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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Diboss
Frequent Visitor

how to Divide Measure by a column ( number of week)

I want to divide a measure total hours ( month) by the number of weeks ( build table) see below

I have the total hours but for the number of weeks i have built a table and each month i have specified the number of week

 

= Total hours/ number of weeks

 

Diboss_0-1682081915725.png

 

 

4 REPLIES 4
Alf94
Super User
Super User

Hi @Diboss ,

 

Did you try a measure like the following one?

 

Division =
  DIVIDE(
    [Total Hours],
    MAX( Table[Number of weeks] )
  )

where [Total hours] is your measure already created.

Then you can add this new measure to a visual with months as a dimension.

 

Please mark my answer as a solution if I answered your question.

 

Best,

Diboss
Frequent Visitor

hi @Alf94 ,

below is the table that i am presenting. I have the actual hours for the month ( measure)

I need to calculate the Actual FTE, for now i am doing it manual calculation in excel.

I need to divide the = actual hours / by number of weeks

for example January I have 5 weeks in my calendar but february its 4 weeks

for January = Actual hours / 5 ( which represents number of weeks)

Februay = Actual hours / 4 ( which represents number of weeks)

Diboss_0-1682085528163.png

 

Diboss
Frequent Visitor

Hi @Alf94 ,

 

it works for January but not the other months because it is always choosing the max ( 5 weeks in stead of 4 weeks)

@Diboss,

 

Sorry about this, could you explain a bit about how do you want to use this measure once created (which type of visual for example)? It would be best if you provide sample data and the expected output.

 

Best,

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.