Forum Discussion
Centaur
4 years agoHelper V
Apply a Rate
Hello, I am a novice user of Power Query. I have a problem I cant figure out. Grateful for the assistance. here is what I need to do : I need to apply a rate from a rate table and app...
- 4 years ago
Hi Centaur
You can create a measure to get the rate according to project ID and dates periods. Put this measure into Values of your pivot table. I create the following sample with Power BI. It's similar in Excel's Power Pivot table.
m_Rate = var __date = MAX('data'[dte]) var __projID = MAX('data'[ProjID]) return CALCULATE(MAX(Rates[Rate]),'Rates'[ProjectID]=__projID,'Rates'[Date From]<=__date,Rates[Date To]>__date)Reference:
Measures in Power Pivot (microsoft.com)
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.