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
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
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.