Forum Discussion
Power BI Calculation
- Anonymous4 years ago
Hi Anonymous ,
You can refer the following links to get it:
Get the active items count during selected period:
Showing running number of active users (at each given date)
Active Users = CALCULATE ( COUNTROWS ( Table1 ), Table1[StartDate] < MAX ( DimDate[Date] ), Table1[EndDate] > MAX ( DimDate[Date] ) )Overtime calculation:
OT = if([HoursPerWeek]>40,[HoursPerWeek] - 40*[EmployeeCount],BLANK())If the above ones can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Hi Anonymous ,
You can refer the following links to get it:
Get the active items count during selected period:
Showing running number of active users (at each given date)
Active Users =
CALCULATE (
COUNTROWS ( Table1 ),
Table1[StartDate] < MAX ( DimDate[Date] ),
Table1[EndDate] > MAX ( DimDate[Date] )
)
Overtime calculation:
OT = if([HoursPerWeek]>40,[HoursPerWeek] - 40*[EmployeeCount],BLANK())
If the above ones can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards