Skip to main content
cancel
Showing results for 
Search instead 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

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
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
Europe Fabric Conference

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.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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