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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.