Forum Discussion
DAX Query
- 3 years ago
Let me assume that you are working at row level of source data table. In this case please try
Test New =
SUMX (
FILTER (
'Procurement_Main_Data',
'Procurement_Main_Data'[Planned Duration] = TIMEVALUE ( "00:15" )
&& 'Procurement_Main_Data'[Delivered Duration] >= TIMEVALUE ( "00:00" )
&& 'Procurement_Main_Data'[Planned Duration] <= TIMEVALUE ( "00:17" )
),
'Procurement_Main_Data'[Test Cost] * 'Procurement_Main_Data'[Delivered Duration Decimal]
)
Thank you tamerj1 for responding.
I have tried the DAX and I am getting 0.28 and I should be getting 0.56 - see below
If you place the measure in the table, does it give the same value?
- spandy343 years agoResponsive Resident
Yes -
- tamerj13 years agoCommunity Champion
Perhaps you mean
Test New =
CALCULATE (
SUM ( 'Procurement_Main_Data'[Test Cost] ),
'Procurement_Main_Data'[Planned Duration] = TIMEVALUE ( "00:15" )
&& 'Procurement_Main_Data'[Delivered Duration] >= TIMEVALUE ( "00:00" )
&& 'Procurement_Main_Data'[Planned Duration] <= TIMEVALUE ( "00:17" )
) * 'Procurement_Main_Data'[Delivered Duration Decimal]?
- spandy343 years agoResponsive Resident
Ive tried ? and ) at the end of the DAX and get these errors