Weighted Average Calculation in Power BI

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ย. 2024

ความคิดเห็น • 50

  • @sapkyoshi
    @sapkyoshi 10 หลายเดือนก่อน

    Love the honesty in your description dude.

  • @cromeromail
    @cromeromail 9 หลายเดือนก่อน

    This was GREAT! Exactly what I was looking for and explained so well!

  • @bradj229
    @bradj229 8 หลายเดือนก่อน

    Thanks! I needed to understand this quickly :)

  • @zhihaowu208
    @zhihaowu208 4 หลายเดือนก่อน

    Beautiful explaination!

  • @mariaelver
    @mariaelver 2 ปีที่แล้ว

    Thanks, that summarize table helped me out!

  • @danielgrudlev1002
    @danielgrudlev1002 2 ปีที่แล้ว

    Thank you my man, works with all kind of other columns! Good stuff :)

  • @umranshahid
    @umranshahid ปีที่แล้ว

    I have the following data:
    Production:
    - July 11,980 tonnes
    - August 10,789 tonnes
    - September 11,674 tonnes
    Energy Indices
    July 10,214 mega joules
    - August 10,378 mega joules
    - September 11,450 mega joules
    How can I calculate quarterly weighted average of energy in mega joules?

  • @deda118
    @deda118 ปีที่แล้ว

    Expert! Great pace too.

  • @AhmedShabeer
    @AhmedShabeer 3 ปีที่แล้ว +2

    Explained in very detail. I'm finding it difficult to create virtual table as the calendar table is in an inactive relationship. Cumulative total is also not working here.
    Wt Actual R1 =
    VAR MaxDate=MAX(DimDate[Date])
    VAR SumofWeightage =
    CALCULATE (
    [Weightage Total],
    // Total for the period as denominator to calculate average weightage
    ALLSELECTED ( DimDate ),
    USERELATIONSHIP(DimDate[Date],'AMI TC Data'[Inspection Date])
    )
    RETURN
    VAR MonthlyTable =
    ADDCOLUMNS(
    SUMMARIZE(
    'AMI TC Data',
    DimDate[Year], DimDate[MonthShort]),
    "MonthlyWt", [Weightage Total],
    "Wt", [Weightage Total]/SumofWeightage
    )
    Return
    CALCULATE(
    SUMX(
    MonthlyTable,
    [MonthlyWt]*[Wt]
    ),
    USERELATIONSHIP('AMI TC Data'[Inspection Date], 'DimDate'[Date])
    )

    • @sarthak810
      @sarthak810 6 หลายเดือนก่อน

      Wt Actual R1 =
      VAR MaxDate = MAX(DimDate[Date])
      RETURN
      CALCULATE(
      SUMX(
      'AMI TC Data',
      'AMI TC Data'[Weightage Total] * 'AMI TC Data'[Weightage Total] / CALCULATE(
      SUM('AMI TC Data'[Weightage Total]),
      ALL('AMI TC Data'),
      DimDate[Date] IN DATESBETWEEN(
      DimDate[Date],
      BLANK(),
      MaxDate
      )
      )
      ),
      USERELATIONSHIP('AMI TC Data'[Inspection Date], DimDate[Date])
      )

  • @nautyrider
    @nautyrider 2 ปีที่แล้ว

    Thank you Paaji , This Video really saved my day today !

  • @markhenderson3771
    @markhenderson3771 ปีที่แล้ว +1

    Can you show this in power query?

  • @bwya4558
    @bwya4558 5 หลายเดือนก่อน

    I don't understand the benefit of adding a weighted value when you can see the weight based on the Total Sales number. I still have to look for the highest number to see which one holds the most weight. I could do that just by looking at or sorting the Total Sales. Can someone give me a real-world example of how this is useful to you?

  • @patrickkinbonso1809
    @patrickkinbonso1809 10 หลายเดือนก่อน

    Thanks Chandeep. Quick question please. As you have already created 2x measures, any reason why you need to create a virtual table with 2x variables to get the weighted average rather than multiplying the 2x measures please?
    Thanks

  • @anasbinazar1256
    @anasbinazar1256 ปีที่แล้ว

    Great video and explanation, thanks

  • @ltang
    @ltang หลายเดือนก่อน

    Why would you weigh monthly sales by monthly sales.. is there any practical use for this?

  • @wayneedmondson1065
    @wayneedmondson1065 3 ปีที่แล้ว

    Hi Chandeep. Thanks for the video. Good tips and techniques there. Will come in handy in my work. Thanks for sharing. Thumbs up!!

    • @GoodlyChandeep
      @GoodlyChandeep  3 ปีที่แล้ว +1

      Thanks Wayne, Glad I could help
      Cheers

  • @avilpinto1818
    @avilpinto1818 ปีที่แล้ว

    Hey Chand thumbs up
    Why can’t we have the new columns added within summarize . Than using add columns top of summarize. Please explain

  • @bhakthasingh8198
    @bhakthasingh8198 3 ปีที่แล้ว

    Excellent!

  • @juancarloshernandez4949
    @juancarloshernandez4949 ปีที่แล้ว

    Hi, its a ilustrative your class, i have a problem with the total of weigh ponderate, not is the sum, its the formula apply over total, can You help me to fix

  • @punchbuddies220
    @punchbuddies220 ปีที่แล้ว

    Hello man,
    maybe, you can help
    I have a dataset - granularity is transaction by venture internal orders. Each venture has different set of shareholders.
    The required dashboard needs to show a chart showing each shareholder share $ in each of the projects /ventures.
    Still figuring out the DAX to use. Many thanks.

  • @sktneer
    @sktneer 3 ปีที่แล้ว

    Fantastic! 👍

  • @umranshahid
    @umranshahid ปีที่แล้ว

    Do I need to use filter function for weighted average calculation?

  • @derrickkuria4206
    @derrickkuria4206 3 ปีที่แล้ว

    I have a question of the same nature though requires some more expertise, how can I reach you ..

  • @user-mc5rd1bp6h
    @user-mc5rd1bp6h 11 หลายเดือนก่อน

    hi Sir,
    How i can download the sample pbix file to practice ?

  • @satyapalrawat7857
    @satyapalrawat7857 ปีที่แล้ว

    Hi - Thank you for sharing the video. It's very helpful. I have a similar situation. I have a table with data by Brand (total 3 Brand), Country, Product, Date (each day of the year) & working days , holiday and weekend flag against each day. I want to calculate a week ending 7th Jan or Week ending 14th Jan average transaction on a weighted working day (some country may have holiday). Since the data is at day level, I have duplicate dates, country & product etc. Is that possible, please?

  • @xcorect
    @xcorect 3 ปีที่แล้ว

    Great Video

  • @saadiquemerchant
    @saadiquemerchant 3 ปีที่แล้ว

    Great video and very easy to follow !! How do I amend the DAX formula if the value for TOTAL changes with the filters? So if I wanted the weighted average only for quarter 1?

    • @ashokt1689
      @ashokt1689 3 ปีที่แล้ว

      Try using allselected() dax instead of All() for denominator calculation. Hope this helps

  • @ssi8189
    @ssi8189 2 ปีที่แล้ว

    Sir, please guide if we have dates in column and row as string like sales, raw material, profit like, how to make measure so that if i filter sales and graph shows year by year sales of different companies, thanks in advance

  • @jcarltonfox
    @jcarltonfox ปีที่แล้ว

    Thanks!

  • @TheAtulsachan1234
    @TheAtulsachan1234 3 หลายเดือนก่อน

    these two examples and their weighted average does not look right. First, the weighted average needs two arrays. Here the second array is derived from the firstr array i.e. sales. The row level sale is divided by the grand total.
    Second thing, the values what we see from the acutals [total sales] and the [Weighted Average] are very far from each other. This does not seem right. Can someone throw some light here?

  • @cynthianavarrete33
    @cynthianavarrete33 3 ปีที่แล้ว

    How can I bueno a course of power bi?

  • @sureshpunna205
    @sureshpunna205 3 ปีที่แล้ว

    I'm new to dax
    Pls help with error debug.
    I'm trying to calculate sum of sales increase 19 vs 20 by Product and customer.
    Positive diff =
    Var a = distinct (sales[product])
    Var b = district ( sales [customer])
    Var c = a&b
    Return
    Sumx ( c, max(0,[val diff 19vs20]))
    Thank you.

  • @jyotijaiswal4784
    @jyotijaiswal4784 2 ปีที่แล้ว

    In ytd wt avg total not sum

  • @umranshahid
    @umranshahid ปีที่แล้ว

    Thanks dear. I am a little confused to get weighted average of my data.
    I have monthly production in tonnes and monthly energy in mega joules. I have to calculate weighted average of quarterly, half-yearly and annual energy indices in mega joules. Could you please guide me. Please share your WhatsApp no. So that I may show you my data and find the solution with your help.

  • @neelbanerjee7875
    @neelbanerjee7875 ปีที่แล้ว

    Awesome.. could please share the source code (PBIX)?

    • @GoodlyChandeep
      @GoodlyChandeep  ปีที่แล้ว

      goodly.co.in/weighted-average-in-power-bi/

  • @eagillum
    @eagillum 3 ปีที่แล้ว

    Whoa. Whoosh.

  • @narakdk
    @narakdk 2 ปีที่แล้ว

    After watching this video, I went to my boss and quit my job : )

    • @GoodlyChandeep
      @GoodlyChandeep  2 ปีที่แล้ว

      Why..? I didn't promote any million dollar idea in the video.🤔

    • @narakdk
      @narakdk 2 ปีที่แล้ว

      It was a joke : ) It means that I thought I could do Power BI, but after this I have to tell my boss she should hire an expert on our BI reports instead of me, still being stuch with Sum and a few Calculate formulas : ) I took many online classes, but I guess that is just my level.

  • @FRANKWHITE1996
    @FRANKWHITE1996 3 ปีที่แล้ว

    great video, but content a bit too complicated for me ;p

    • @GoodlyChandeep
      @GoodlyChandeep  3 ปีที่แล้ว

      No worries.. keep working you'll get there! :)