Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Henriquesm
New Member

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!!

 

 

 

1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

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!! 

Badges.jpg

LinkedIn | Twitter | Blog | YouTube 

View solution in original post

1 REPLY 1
VahidDM
Super User
Super User

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!! 

Badges.jpg

LinkedIn | Twitter | Blog | YouTube 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.