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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Table visualization - Q&A

Hi all,

I have this table below:

Chen1821_0-1627306808212.png

I performed conditional formatting with number to highlight the status level (by converting the string into an intger fit to every status).

I would like to know if there is a way to give additional conditional formmating  for the sections before the current status level & add spaces between every row- it's should looks like this:

Chen1821_1-1627307025453.png

 

 

Thanks in advanced!

 

BR.



4 REPLIES 4
Jihwan_Kim
Super User
Super User

Picture2.png

 

Status measure : =
IF (
HASONEVALUE ( Tasks[Task] ) && HASONEVALUE ( 'Status'[Status] ),
COALESCE ( SELECTEDVALUE ( Data[Status] ), "" )
)
 
 
Status flag : =
VAR _indexnumber =
CALCULATE ( MAXX ( Data, RELATED ( 'Status'[Index] ) ), ALL ( 'Status' ) )
VAR _selectedindexnumber =
SELECTEDVALUE ( 'Status'[Index] )
RETURN
SWITCH (
TRUE (),
_selectedindexnumber < _indexnumber, 1,
_selectedindexnumber = _indexnumber, 9,
BLANK ()
)
 
 
 
 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Anonymous
Not applicable

Hi,

I see that you divided the data model into 3 table - however I want to perform that by only 1 table - can I do it?

Thanks a lot!

I failed to make those into one table.

If you have one table for the above, please provide it. Then, I can try to use that one table to create the same result.

Thanks.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Anonymous
Not applicable

Hi,

Thanks for the quick replay, please find the attached PBI pictures (I can't share the file):

Chen1821_0-1627387421680.pngChen1821_1-1627387436384.png

 

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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