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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
BIswajit_Das
Resolver III
Resolver III

Power Bi Table

I have a table like

x

0-5%

6-10%

11-20%

21-30%

31-50%

51-60%

but my table view cames like

x

0-5%

11-20%

21-30%

31-50%

51-60%

6-10%

so how to show this in order and want apply conditional formatting to color low to high

Is there a way to do this?

1 ACCEPTED SOLUTION
BIswajit_Das
Resolver III
Resolver III

To order the table can add a conditional column like

powerbicommunity.PNG

Then go to the visual and select the custom column and click on the sortby custom column.

OutcomeOutcome

Then to add conditional coloring we can create a measure with

 

Color =
var selected_status = SELECTEDVALUE('Table'[GroupPerventage])
return
if(selected_status="0-5%","#f7eb9e",if(selected_status="6-10%","#f2e58d",if(selected_status="11-20%","#f5cc18",if(selected_status="21-30%","#e3ba07",IF(selected_status="31-40%","#f0b52e",IF(selected_status="41-50%","#db9f14",IF(selected_status="51-60%","#ba8711",IF(selected_status="Above 61%","#996f0e" ))))))))
 
Then choose the conditional color for the column with "find value" and add "color" measure as it's value to apply the coloring
i.e.
Required Data With VisualRequired Data With Visual
Thank you.

View solution in original post

3 REPLIES 3
BIswajit_Das
Resolver III
Resolver III

To order the table can add a conditional column like

powerbicommunity.PNG

Then go to the visual and select the custom column and click on the sortby custom column.

OutcomeOutcome

Then to add conditional coloring we can create a measure with

 

Color =
var selected_status = SELECTEDVALUE('Table'[GroupPerventage])
return
if(selected_status="0-5%","#f7eb9e",if(selected_status="6-10%","#f2e58d",if(selected_status="11-20%","#f5cc18",if(selected_status="21-30%","#e3ba07",IF(selected_status="31-40%","#f0b52e",IF(selected_status="41-50%","#db9f14",IF(selected_status="51-60%","#ba8711",IF(selected_status="Above 61%","#996f0e" ))))))))
 
Then choose the conditional color for the column with "find value" and add "color" measure as it's value to apply the coloring
i.e.
Required Data With VisualRequired Data With Visual
Thank you.
FreemanZ
Super User
Super User

hi @BIswajit_Das 

try change it to

5%
10%
20%
30%
50%
60%
BIswajit_Das
Resolver III
Resolver III

Table                    Table Visual                Required Visual

TableTableVisual TableVisual TablePBIMar4-3.PNG

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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