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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Anonymous
Not applicable

Need help- Adding more condition

Hello all,

 

Greeting.

What should I do to show the different targets in the same visual? Currently, this graph showing the Met Max Target result only

 

Visual.JPG

 

Criteria :

1 - Met Min Target ( total staff count )

2 - Met Max Target ( total staff count )

 

How should I improve the DAX code to include Met Min Target into the graph visual? Thanks for helping.

 

DAX code

Utilization =

ADDCOLUMNS(

SUMMARIZE(

'Effort',

'Effort'[Month],Effort[StaffName],Effort[Location],

"Total Effort Hours",SUM('Effort'[EffortTime])

),

"MetMaxTarget",IF(CALCULATE(MAX('ManTotalHR'[MaxEffort]),ManTotalHR[Date]=EARLIER(Effort[Month])) <= [Total Effort Hours],1,0),

 

Currently, I have 2 Table to compare the results 

Effort table

StaffMonthWeekTotal Working Hours
AJan140
AJan235
AJan337
AJan440
AJan530
BJan138
BJan239
BJan340
BJan430
BJan530
CJan140
CJan240
CJan340
CJan440
CJan530
AFeb135
AFeb240
AFeb340
AFeb430
BFeb140
BFeb235
BFeb330
BFeb425
CFeb130
CFeb230
CFeb332
CFeb435

 

ManTotalHR Table 

MonthMax TargetMin Target
Jan180160
Feb130110

 

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

Try a Clusered Column and Line chart visual. Experiment with setting the Stroke width for the line to 0.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks, @Greg_Deckler  for your reply.

Before that I struggle with DAX code, anyway I found the solution already.

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.