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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
jen8080
Helper I
Helper I

Creating a Status bar|| Help!

Hello- 

This seems like it should be very simple with a helper table and a couple measures but I am not having any luck.

Goal:

Create a status bar and show the previous statuses were met.

Here is what it should look like:

jen8080_0-1616426561032.png

 

Status order: 

StatusSort order
Identified1
Defined2
Extracted3
Formatted4
Approved5
Transferred6
N/A7

 

 

Data:

CompanyCountryProductStatusStatus Date
Company Name 1SpainProduct 1Approved1/1/2021
Company Name 1ItalyProduct 2Transferred1/2/2021
Company Name 1FranceProduct 3Transferred1/3/2021
Company Name 1UKProduct 4Transferred1/4/2021
Company Name 1NetherlandsProduct 5Transferred1/5/2021
Company Name 1MontenegroProduct 6Transferred1/6/2021
Company Name 1CroatiaProduct 7Transferred1/7/2021
Company Name 1SpainProduct 8Transferred1/8/2021
Company Name 1ItalyProduct 9Transferred1/9/2021
Company Name 1FranceProduct 10Transferred1/10/2021
Company Name 1UKProduct 11Transferred1/11/2021
Company Name 1NetherlandsProduct 12Transferred1/12/2021
Company Name 1MontenegroProduct 13Approved1/13/2021
Company Name 1CroatiaProduct 14Transferred1/14/2021
Company Name 2AustraliaProduct 15Transferred1/15/2021
Company Name 2New ZealandProduct 16Transferred1/16/2021
Company Name 2FijiProduct 17Formatted1/17/2021
Company Name 2SamoaProduct 18Extracted1/18/2021
Company Name 2TongaProduct 19Extracted1/19/2021
Company Name 2AustraliaProduct 20Extracted1/20/2021
Company Name 2New ZealandProduct 21Extracted1/21/2021
Company Name 2FijiProduct 22Transferred1/22/2021
Company Name 2SamoaProduct 23Transferred1/23/2021
Company Name 2TongaProduct 24Transferred1/24/2021
3 REPLIES 3
Anonymous
Not applicable

Hi @jen8080 ,

 

How do you get the previous statuses? According to your sample data, the max of status of Company2 Fiji should be Transferred so the previous status should be Approved. But in the expected visual you have provided it's previous status is Formatted? Did I missed some points?

Sort order = LOOKUPVALUE('Status order'[Sort order],'Status order'[Status],Data[Status])

max_status = CALCULATE(MAX(Data[Sort order]),FILTER(ALLEXCEPT(Data,Data[Company],Data[Country]),Data[Status Date]=CALCULATE(MAX(Data[Status Date]),ALLEXCEPT(Data,Data[Company],Data[Country]))))

5.PNG

 

Best Regards,

Jay

amitchandak
Super User
Super User

@jen8080 , if you looking for status is met the create a color measure

 

Switch( True(),

not(isblank(max(Table[status]) )), "Blue",

"White"

)

 

Use this measure using conditional formatting with "Field value" option , for both text and background

 

refer for steps

https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak 

Thanks- its close, it give the "blue" color to the current status but it isn't showing "blue" for previous statuses. 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.