cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Post Prodigy

## DAX: Need to create a another column for Percentage Slicers

Hi All,

Required assistance, I have created a column by using Divide function, result is showing in percentage.
Now i want to create another column/measure by using this, where i have segregate 0 to 20%, 21% to 50% &  >51%, so that i can use this as slicer.

Regards,

1 ACCEPTED SOLUTION
Super User

Hi @harirao ,

You can create a column using the following DAX expression:

Percentage Grouping = IF((Percentage[Percentage]*100) >= 0 && (Percentage[Percentage]*100) < 21, "0 to 20%",    IF((Percentage[Percentage]*100) >= 21 && (Percentage[Percentage]*100) < 51, "21% to 50%"), "> 51%"))

NOTE: Replcae Percentage[Percentage] column in above DAX with your percentage column.

If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂

Thanks,
Pragati

Best Regards,

Pragati Jain

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Proud to be a Super User!!

5 REPLIES 5
Super User
Super User

Hi @harirao ,

You can create a column using the following DAX expression:

Percentage Grouping = IF((Percentage[Percentage]*100) >= 0 && (Percentage[Percentage]*100) < 21, "0 to 20%",    IF((Percentage[Percentage]*100) >= 21 && (Percentage[Percentage]*100) < 51, "21% to 50%"), "> 51%"))

NOTE: Replcae Percentage[Percentage] column in above DAX with your percentage column.

If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂

Thanks,
Pragati

Best Regards,

Pragati Jain

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Proud to be a Super User!!

Post Prodigy

Thanks, this solution worked.

Regards,

Hari

Super User

Hi @harirao ,

Can you please accept the solution which worked for you?

Thanks,

Pragati

Best Regards,

Pragati Jain

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Proud to be a Super User!!

Community Champion

Can you add sample tables (in format that can be copied to PowerBI) from your model with anonymised data? Like this (just copy and paste into the post window).

 Column1 Column2 A 1 B 2.5

Thank you for the kudos 🙂

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

#### Fabric Community Update - July 2024

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

Top Solution Authors
Top Kudoed Authors