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
Syndicate_Admin
Administrator
Administrator

Generate the projection

Good night.
I have the following problem Community I have the following table in which I am generating the rotation calculation, that calculation what I am generating as follows, the total casualties between the total workforce per month and year. for this example presented the reflection per month

shadyrenato_0-1617958912462.png

The problem is that I only occupy the project of the month of March, instead of having 5.5% I would have to show 10.1% as a sample in the following Excel table, the dax that I am using to make the projection is the next projected rotation (Rotation / 17)*31 being 17 the number of days and 31 corresponding to the total days of the month of March.
As seen in the table. Jan and Feb only divides the casualties between the template and the month of March is only calculated the projection of the above-mentioned calculation, projected rotation (Rotation / 17)*31

shadyrenato_1-1617958912482.png


This to represent a graph as follows.

shadyrenato_2-1617958912485.png

if anyone knows how to make such a calculation, they'd be very assaulted.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Syndicate_Admin , Try a measure like


Rotation X WorkDay / Days=
Var _end = eomonth(today(),0)
var _st = eomonth(today(),-1)+1
var _totd = day(_end)
return
[Rotation] * COUNTROWS(FILTER(ADDCOLUMNS(CALENDAR(_st,_end),"WorkDay", if(WEEKDAY([Date],2) <6,1,0)),[WorkDay] =1))/_totd

View solution in original post

2 REPLIES 2
V-pazhen-msft
Community Support
Community Support

@Syndicate_Admin 

Not sure why you get 10.1% but you could create a if measure.


Measure = If(max([mes]="Mar", [rotacion marzo], [rotacion])

 


Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Syndicate_Admin , Try a measure like


Rotation X WorkDay / Days=
Var _end = eomonth(today(),0)
var _st = eomonth(today(),-1)+1
var _totd = day(_end)
return
[Rotation] * COUNTROWS(FILTER(ADDCOLUMNS(CALENDAR(_st,_end),"WorkDay", if(WEEKDAY([Date],2) <6,1,0)),[WorkDay] =1))/_totd

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.