+ Reply to Thread
Results 1 to 3 of 3

Grouping specified columns

  1. #1
    Registered User
    Join Date
    09-10-2014
    Location
    holland
    MS-Off Ver
    2013
    Posts
    29

    Question Grouping specified columns

    Hi guys!

    Probably an easy one but I am working in power BI (designer) and I want to make 5 groups out of 1 row of random data from 1 to 400. I want to create a group from 1 to 10 "Tier 5", 11 to 24 "Tier 4", 25 to 49 "Tier 3", 50 to 99 "Tier2" and 100< "Tier 1".

    Now ofcourse I know we can do this with IF function. But this is a long formula and I will have to do similar groupings more often for different columns. So now I was wondering whether this process can't be made easier with maybe a DAX formula. Maybe it would be easiest doing it by creating a relationship with another column created by ourselves. But any input is great as long as it is an easy one to use!

    Thanks!

    Marty V!

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Grouping specified columns

    Something along lines of

    ="Tier "&LOOKUP(A1,{1,11,25,50,100},{5,4,3,2,1})

    First part in brackets is the lower end of your ranges, second part in brackets is the result given A1
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    09-10-2014
    Location
    holland
    MS-Off Ver
    2013
    Posts
    29

    Re: Grouping specified columns

    Thank you very much it works in excel! In power Pivot however it doesn't seem to work (Works with DAX). Should I change the formula perhaps?

    And what if I want to do the same with percentages.
    10% =Tier 4, next 20 %= Tier 3, Next 30%= Tier 2 and final 40% =tier 1?

    Thank you very much for your help!
    Last edited by martijnvanderveldt; 06-26-2015 at 11:00 AM.

+ 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] Grouping columns
    By rs1aj in forum Excel General
    Replies: 4
    Last Post: 08-04-2014, 12:27 PM
  2. [SOLVED] Grouping columns
    By rs1aj in forum Excel General
    Replies: 2
    Last Post: 08-04-2014, 11:37 AM
  3. Replies: 0
    Last Post: 02-24-2011, 12:46 PM
  4. [SOLVED] Grouping columns
    By joey in forum Excel General
    Replies: 5
    Last Post: 10-10-2005, 12:05 AM
  5. Help with grouping columns
    By couriced in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 09-02-2005, 01:05 PM

Tags for this Thread

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