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.
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
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
This to represent a graph as follows.
if anyone knows how to make such a calculation, they'd be very assaulted.
Solved! Go to Solution.
@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
@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.
@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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
106 | |
87 | |
76 | |
66 |
User | Count |
---|---|
126 | |
112 | |
99 | |
81 | |
73 |