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
vjnvinod
Impactful Individual
Impactful Individual

Column graph

Dear Experts

 

I have a column chart like below & I am using the below measure to get this result

 

EWF 4 weeks EU % = CALCULATE(
DIVIDE (
SUM ( Executive_Weekly_Flash_Consolidated[Actual CH Hrs] ),
SUM ( Executive_Weekly_Flash_Consolidated[Actual EAH] )
),Executive_Weekly_Flash_Consolidated[Period]="WTD",Week_Tbl[Visibility25])
 
FWD Utilization % =
CALCULATE (
DIVIDE (
SUM ( 'Mercury_Extract'[Chargable] ),
SUM ( Mercury_Extract[Standard Hrs]) - SUM ( Mercury_Extract[Holiday] )
),
Week_Tbl[Visibility19]
)

what I want to do is to show Week 16 in a different color, is that possible?

i am not able to find a way

 

vjnvinod_0-1636978926396.png

 

1 ACCEPTED SOLUTION

@vjnvinod , Please replace color with hex code , replace with one you want

 

eaxmple

SWITCH (

TRUE (),

MAX ( Week_Tbl[CurrentWeek] ) = MAX ( Week_Tbl[Index] ), "#0000FF",

MAX ( Week_Tbl[Index] ) < MAX ( Week_Tbl[CurrentWeek] ), "#00FF00",

MAX ( Week_Tbl[Index] ) > MAX ( Week_Tbl[CurrentWeek] ), "#FFFF00"

)

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

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@vjnvinod , You can not show if they are two measures. If you are sure both these measure will not have overlapping data add them

m1 = [EWF 4 weeks EU %] +[FWD Utilization %]

 

No based on logic if week 16 is current week or max selected week etc, create a color measure and use that in conditional formatting using the field value option

 

example

Switch(True(),

max(Date[week]) <16, "Blue",

max(Date[week]) =16, "Red",

max(Date[week]) >16, "Yellow"

)

 

How to do conditional formatting by measure and apply it on pie?: https://youtu.be/RqBb5eBf_I4

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 

 

I actually don't have the dates in my week table

However, I was trying to create the measure as you mention, but not successful though

let me know how to create the measure, that will be helpful

vjnvinod_0-1636990926456.png

 

vjnvinod
Impactful Individual
Impactful Individual

@amitchandak 

 

It worked well & I looked at your youtube video, amazing

But you didn't explain how to use Hexa code, how do I change the below measure to Hexa code?

 

SWITCH (

    TRUE (),

    MAX ( Week_Tbl[CurrentWeek] ) = MAX ( Week_Tbl[Index] ), "Blue",

    MAX ( Week_Tbl[Index] ) < MAX ( Week_Tbl[CurrentWeek] ), "Green",

    MAX ( Week_Tbl[Index] ) > MAX ( Week_Tbl[CurrentWeek] ), "Yellow"

)

@vjnvinod , Please replace color with hex code , replace with one you want

 

eaxmple

SWITCH (

TRUE (),

MAX ( Week_Tbl[CurrentWeek] ) = MAX ( Week_Tbl[Index] ), "#0000FF",

MAX ( Week_Tbl[Index] ) < MAX ( Week_Tbl[CurrentWeek] ), "#00FF00",

MAX ( Week_Tbl[Index] ) > MAX ( Week_Tbl[CurrentWeek] ), "#FFFF00"

)

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

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.