+ Reply to Thread
Results 1 to 1 of 1

Need help with powerpivot if function

  1. #1
    Registered User
    Join Date
    08-07-2012
    Location
    Kentucky, USA
    MS-Off Ver
    Office 2010 & 2011 for Mac
    Posts
    3

    Need help with powerpivot if function

    Hi all. I'm a pretty new poster, but I've reviewed the site for some time now. I'm having trouble with a function and I didn't find any help reading through other's posts.

    I'm trying to come up with a function for a powerpivot measure. I know this formula is wrong, but I can't figure out how to rewrite it in the proper DAX context.

    =IF(Table1[Hardware category]) = "Medical hardware", sumx(Table1,[Installations]),sumx(Table1,[Installations])/DISTINCTCOUNT([Professional grade]))

    Basically what this formula is doing is calculating the sumx of a column and dividing it by the distinct count of another column. However, I have some data (cells in the hardware category column that contain "Medical hardware" that I don't want to be divided by the distinct count.

    By the way, if I make the formula =IF(VALUES(Table1[Hardware category])) . . . the formula works, but it breaks the pivot table b/c it is blank unless only one item is selected in the hardware category.

    How do I do this?
    Last edited by buckle2600; 09-12-2012 at 06:15 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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