Forum Discussion
Anonymous
8 years agoNot applicable
Multiply Daily Value by Monthly Value
I have 2 tables, 1 has monthly data and one has daily data. I want to multiply my daily value by my monthly value in a measure so I can later splice the sum of cost per month Sample Data: ...
- 8 years ago
Anonymous
8 years agoNot applicable
Try this:
[Cost] =
SUMX (
DailyTable,
DailyTable[Amount] * LOOKUPVALUE (
MonthlyTable[Rate],
MonthlyTable[Date], DailyTable[Date]
)
)- Anonymous8 years agoNot applicable
Thanks for your reply!
Unfortunately this measure returns [first day of the month] * [monthly rate ] ; not a sum of the cost each day per month
- Zubair_Muhammad8 years agoCommunity Champion
Anonymous
Try this MEASURE
CostMeasure = CALCULATE ( SUM ( MonthlyTable[Rate] ), FILTER ( MonthlyTable, MONTH ( SELECTEDVALUE ( DailyTable[Date] ) ) = MONTH ( MonthlyTable[Date] ) ) ) * SUM ( DailyTable[Amount] )- Zubair_Muhammad8 years agoCommunity Champion
Anonymous
See the attached pbix file