+ Reply to Thread
Results 1 to 2 of 2

Power Pivot Measure so I can put a text field in If condition is not true

  1. #1
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Power Pivot Measure so I can put a text field in If condition is not true

    Dear All

    I was wondering whether some one can help me with the problem I have in my power pivot \Measure:

    I have the following formula
    if('Dept No'[Average Customer KPI]>0,RANKX(All('Dept No'[Department]),'Dept No'[Average Customer KPI]),0)

    What I need is if the Average Customer KPI is 0 then rank function to ignore it, so I need to put "N/A" at the end of my formula instead of 0, but when I do this I get an error saying

    Calculation error in measure 'Dept No'[261ccda5-8527-47f2-b552-3cb3cb91ebaf]: The second and third arguments of function IF have different data types. This is not supported.

    Is there anyway round this so I can put a text if condition is False so Rank function ignores it.

    Any help is Appreciate it

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Power Pivot Measure so I can put a text field in If condition is not true

    I think you may use BLANK() instead of 0 but I am not sure this is what you need.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

+ 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. Replies: 0
    Last Post: 12-04-2015, 11:31 AM
  2. [SOLVED] Help Needed with Power Pivot Calculate Measure
    By rv02 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-13-2015, 10:09 AM
  3. [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
  4. [SOLVED] RANK.EQ Function in Power Pivot Measure
    By rv02 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-16-2015, 04:26 PM
  5. Replies: 1
    Last Post: 04-21-2014, 12:59 PM
  6. Excel Power pivot measure
    By eajustin15 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-12-2013, 05:16 PM
  7. Pivot Table FRom Power Pivot Returns Sum Of Entire Field
    By goss in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-26-2013, 07: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