+ Reply to Thread
Results 1 to 4 of 4

Give the name of the max value in powerpivot calculation

  1. #1
    Registered User
    Join Date
    03-21-2017
    Location
    Belfast
    MS-Off Ver
    OFFICE 365
    Posts
    16

    Give the name of the max value in powerpivot calculation

    Hello, I was hoping someone could help explain how to add a column that gives me the name of product within the area that has the max quantity.

    I found i can use DAX formulas to show the MAXX value for the row within a row.

    Is there a way that I can get excel to give me the name of the product that has this max quantity?

    So for like South, it will give me Blue when it is collapsed.

    Capture.PNG

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Give the name of the max value in powerpivot calculation

    Hi odubby,

    If you attach the sample workbook instead of a picture we can show you how. Pivots allow you to do a "Top 10 Filter" but in your case you would want a Top 1. Then you might need to do a different design of your data to show it how you want.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

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

    Re: Give the name of the max value in powerpivot calculation

    Hi

    Need two measure for for this (assume table name is Table1)

    TotQty:=sum(Table1[Quantity])

    Max Product:=CALCULATE(VALUES(TABLE1[Product]),TOPN(1,TABLE1,[TotQty]))

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

    Re: Give the name of the max value in powerpivot calculation

    Hi

    pls change the formula to this Max Product:=CALCULATE(VALUES(TABLE1[Product]),FIRSTNONBLANK(TOPN(1,TABLE1,[TotQty]),0))

    otherwise error will happen when there is more than one product with highest value

+ 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. [SOLVED] PowerPivot dynamic date calculation
    By no_Fate in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-26-2018, 08:49 PM
  2. Powerpivot calculation based on multiple input fields
    By TripitakaBC in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-03-2017, 12:36 PM
  3. Give remarks based on Age calculation
    By saravanan1981 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-02-2016, 12:26 AM
  4. Replies: 4
    Last Post: 07-23-2015, 03:35 PM
  5. [SOLVED] PowerPivot Percentage Calculation
    By dingdongsilver in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-30-2014, 10:03 AM
  6. Replies: 2
    Last Post: 06-02-2014, 09:34 AM
  7. PowerPivot Calculation
    By cdw1982 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-22-2011, 01:34 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