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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
harirao
Post Prodigy
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.

DAX.PNG

 

 

 

 

 

 

 

 

Regards,

 

1 ACCEPTED SOLUTION
Pragati11
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


MVP logo


LinkedIn | Twitter | Blog YouTube 

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

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@harirao 

Refer: Binning and grouping

https://radacad.com/grouping-and-binning-step-towards-better-data-visualization

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Pragati11
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


MVP logo


LinkedIn | Twitter | Blog YouTube 

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

Appreciate your Kudos!!

Proud to be a Super User!!

Thanks, this solution worked.

Regards,

Hari

Hi @harirao ,

 

Can you please accept the solution which worked for you?

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

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

Appreciate your Kudos!!

Proud to be a Super User!!

Stachu
Community Champion
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


Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.