+ Reply to Thread
Results 1 to 3 of 3

Power BI - Measure to Multiply, Sum, Divide and Average

  1. #1
    Registered User
    Join Date
    12-21-2014
    Location
    singapore
    MS-Off Ver
    2016
    Posts
    42

    Power BI - Measure to Multiply, Sum, Divide and Average

    Hi peeps! decided to break my problem down further. So in the table; i have Amt, rate, Standard %. these are to be multiplied and summed up daily.

    it then needs to be divided by the sum of the rate.

    and finally, for the whole month of jan-2018 for eg, it will take the average of those.

    the attachment will explain as well.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Sadath31's Avatar
    Join Date
    03-02-2011
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    452

    Re: Power BI - Measure to Multiply, Sum, Divide and Average

    HI

    Calculated Column (Column Name is Total) =[Amt]*[rate]*[Standard %]

    Total Rate:=SUM(Table1[Total])/sum(Table1[rate])
    Average:=AVERAGEX(values(Table1[Date]),[Total Rate])

    In Pivot report Date in Rows and Average in Value
    Group the Date by Month

  3. #3
    Registered User
    Join Date
    12-21-2014
    Location
    singapore
    MS-Off Ver
    2016
    Posts
    42

    Re: Power BI - Measure to Multiply, Sum, Divide and Average

    awesome! i tried to squeeze all into one but got a different result. would be great if you can help explain.
    ModifiedAverage = AVERAGEX(VALUES(Table3[Date]),SUMX(Table3,Table3[Amt]*Table3[rate]*Table3[Standard %])/SUM(Table3[rate]))

    but works great if i squeeze into two, omitting the calculated column.
    TotalRate = SUMX(Table3,Table3[Amt]*Table3[rate]*Table3[Standard %])/SUM(Table3[rate])
    Average = AVERAGEX(VALUES(Table3[Date]),[TotalRate])

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. DAX Power Pivot Measure Help
    By chicagolarsons in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-22-2019, 08:57 PM
  2. Removing Subtotals for Measure in Power Pivot
    By ljhami in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 11-12-2018, 03:49 PM
  3. New measure on power query
    By pccamara in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 01-18-2017, 01:08 PM
  4. [SOLVED] Need to multiply a VLOOKUP value then divide that value, then multiply that value
    By debbiemez in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-27-2015, 04:57 PM
  5. [SOLVED] Create a measure in Power Pivot to divide by value in subtotal row of the PP
    By rv02 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-22-2015, 11:22 AM
  6. Excel Power pivot measure
    By eajustin15 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-12-2013, 05:16 PM
  7. [SOLVED] Multiply, Divide and Then Multiply in a cell
    By Brownie2576 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-22-2012, 08:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1