Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have a Measure defined as follows:
Solved! Go to Solution.
Try the following measure:
HoursAlloc =
var _timeperiod = DATEDIFF(MIN( 'CRM Opportunities'[Estimated_Start_Date] ), MAX( 'CRM Opportunities'[Estimated_End_Date]), MONTH )
var _main_query = CALCULATE (
SUM ( 'CRM Opportunities'[Hours] )/
,
FILTER (
'CRM Opportunities',
'CRM Opportunities'[Estimated_Start_Date]
<= MAX ( 'CRM Opportunities'[Estimated_Start_Date] )
&& 'CRM Opportunities'[Estimated_End_Date]
>= MAX ( 'date table'[Date] )
)
)
return
_main_query / _timeperiod
Try the following measure:
HoursAlloc =
var _timeperiod = DATEDIFF(MIN( 'CRM Opportunities'[Estimated_Start_Date] ), MAX( 'CRM Opportunities'[Estimated_End_Date]), MONTH )
var _main_query = CALCULATE (
SUM ( 'CRM Opportunities'[Hours] )/
,
FILTER (
'CRM Opportunities',
'CRM Opportunities'[Estimated_Start_Date]
<= MAX ( 'CRM Opportunities'[Estimated_Start_Date] )
&& 'CRM Opportunities'[Estimated_End_Date]
>= MAX ( 'date table'[Date] )
)
)
return
_main_query / _timeperiod
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 36 | |
| 34 | |
| 31 | |
| 27 |
| User | Count |
|---|---|
| 136 | |
| 103 | |
| 66 | |
| 65 | |
| 56 |