Forum Discussion

Henriquesm's avatar
Henriquesm
New Member
3 years ago
Solved

Percentage Levels

Hi everybody

 

I have a little question about how to create a levels for exemple

I have a column in excel spreadsheet with many percentage datas and I would like to sort all the datas in three part in power bi and to know how many project are sort in these three parts, for exemple:

 

> 22%.  -   10 projects

13,5% ><22% -.  20 projects

<13,5% -   50 projects

 

Do you know how can I do something like this ?

 

Thanks in advance!!

 

 

 

  • Hi Henriquesm 

     

    Add a new column to your table with this DAX expression:

    Sort % =
    IF (
        table[Percentage Column] > 0.22,
        ">22%",
        IF (
            table[Percentage Column] < 0.22
                && table[Percentage Column] > 0.135,
            "13,5% ><22%",
            "<13,5%"
        )
    )
    

     

    Then use this column in your chart/visual to have three categories and count of projects

     

    If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

    Appreciate your Kudos!! 

    LinkedIn | Twitter | Blog | YouTube 

1 Reply

  • Hi Henriquesm 

     

    Add a new column to your table with this DAX expression:

    Sort % =
    IF (
        table[Percentage Column] > 0.22,
        ">22%",
        IF (
            table[Percentage Column] < 0.22
                && table[Percentage Column] > 0.135,
            "13,5% ><22%",
            "<13,5%"
        )
    )
    

     

    Then use this column in your chart/visual to have three categories and count of projects

     

    If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

    Appreciate your Kudos!! 

    LinkedIn | Twitter | Blog | YouTube