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
Karthik12
Helper V
Helper V

Required production rate calculation

Hello Team,

My power bi data as attached below.

 

I would like to calculate the required production rate for remaining working dates of the month.

 

Karthik12_0-1674475062219.png

 

I would like to have measure for 

Required rate = (sum of plan - sum of production qty)/remaining days

Current rate = (sum of production qty)/worked days

 

Can you please support?

 

 Pbix file link

Current rate and required rate.pbix

 

 

1 ACCEPTED SOLUTION
Karthik12
Helper V
Helper V

Hi,

I have done this way

Required rate = DIVIDE(([Plan sum]-[Actual]),[REMAIN])

Current rate = DIVIDE(([Test MTD actual sum]),[Worked days])

 

It working fine for me 🙂 

 

View solution in original post

3 REPLIES 3
Karthik12
Helper V
Helper V

Hi,

I have done this way

Required rate = DIVIDE(([Plan sum]-[Actual]),[REMAIN])

Current rate = DIVIDE(([Test MTD actual sum]),[Worked days])

 

It working fine for me 🙂 

 

amitchandak
Super User
Super User

@Karthik12 , For the current month or use max(Date[Date]) in place of today()

 

Working Dates of month = networkdays(eomonth(today(),-1)+1, eomonth(today(),0) )

 

Working Dates of passed= networkdays(eomonth(today(),-1)+1, today() )

 

Working Dates of left= networkdays(today() +1 , eomonth(today(),0) )

 

MTD Today =
var _min = eomonth(today(),-1)+1
var _max = today()
return
CALCULATE([Net], FILTER('Date','Date'[Date] >=_min && 'Date'[Date] <= _max))

 

This Month Today =
var _min = eomonth(today(),-1)+1
var _max = eomonth(today(),0)
return CALCULATE([Net], FILTER('Date','Date'[Date] >=_min && 'Date'[Date] <= _max))

@amitchandak 

Thanks !

Can you check my file and help for the below?

 

I would like have measures for below both

 

Required rate = (sum of plan - sum of production qty)/remaining days

Current rate = (sum of production qty)/worked days

 

Please refer my pbix file link.

 

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.