Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

How to calculate multiples tables?

Hi,

 

I'm building a financial report where I have a table with the Spread Rate per client and another table with all the sales informations (amount, date, cost, etc).

 

In my dashboard I need a box that shows the geometric avarege spread of all clients, and when they click in a specific client, it shows only the geometric avarege spread of the operations of that client. But how can I do that?

 

I need to multiply the total amount sold (that is in the Sales Table) by the spreads (that is in the first table) in order to make a geometric avarege, but how can I do that?

  • Hi Anonymous ,

    You can create this DAX measure to calcualte and use a slicer to filter its value by client:

    Geomertic average = SUM('Sales Table'[Amount]) * SUM('Table'[Spread Rate])

     

    Best Regards,
    Community Support Team _ Yingjie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 Replies

  • edhans's avatar
    edhans
    Community Champion

    You are going to need to share some data. You can link these with a common DIMENSION table, but with no data or model to look at, it is hard to be more specific.

     

    How to get good help fast. Help us help you.

    How To Ask A Technical Question If you Really Want An Answer

    How to Get Your Question Answered Quickly - Give us a good and concise explanation
    How to provide sample data in the Power BI Forum - Provide data in a table format per the link, or share an Excel/CSV file via OneDrive, Dropbox, etc.. Provide expected output using a screenshot of Excel or other image. Do not provide a screenshot of the source data. I cannot paste an image into Power BI tables.

  • v-yingjl's avatar
    v-yingjl
    Community Support

    Hi Anonymous ,

    You can create this DAX measure to calcualte and use a slicer to filter its value by client:

    Geomertic average = SUM('Sales Table'[Amount]) * SUM('Table'[Spread Rate])

     

    Best Regards,
    Community Support Team _ Yingjie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.