Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Calculating monthly total

Hi    I wish to create a table, which shows dividend payouts for company for each month and year.    I have a table1 that shows dividends for each month updating through an API.  StockTicker  ...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Using Power Query you could merge the two table using both StockTicker and Date as prerequisites (hold ctrl to select more than 1). This would result in an additional column showing your number of shares, then it's just a simple calculation to get your payout. 

     

  • v-henryk-mstf's avatar
    5 years ago

    Hi Anonymous ,


    According to the test data and requirements you provided, I did the following test: First, use merge in Power Query to get the following table.

    Create a measure to get the Amount value of the latest date for different StockTickers:


    Finally, the sum is as follows:

    Here is the sample pbix file.


    If the problem is still not resolved, please provide detailed error information and let me know immediately, looking forward to your reply.


    Best Regards,
    Henry


    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.