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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
EmilyM2019
Helper II
Helper II

DAX formula help

Good morning,

 

I am trying to work out a DAX folrmula to identify if a a certain HR case type is breaching an agreed timescale.  

 

Below is a sample of my data source.

 

What I am trying to calculate is:

 

If 'Organisation' = HCC

And if 'Activity Category' = Investigation

And if 'Count working days' = more than 50

 

Then I want a "Yes" in my new column, else blank.

 

Any help would be apprecated.

 

TIA Emily.

 

Activity CategoryActivity Life Cycle Status (Task)Changed On (Task)Ticket IDService Category (Ticket ID)Count working daysOrgansiation
SuspensionOpen29-Jan-20102507883Misconduct -Child Prot/Safeguarding4HCC
SuspensionOpen29-Jan-20102517066Managing Misconduct4HCC
SuspensionOpen28-Jan-20102497838Managing Misconduct5HCC
InvestigationOpen05-Dec-19102145265Misconduct -Child Prot/Safeguarding43HCC
InvestigationOpen27-Nov-19102101826Managing Misconduct49HC
SuspensionOpen11-Nov-19102082510Misconduct -Child Prot/Safeguarding61HCC
SuspensionIn Process25-Oct-19102073521Managing Misconduct72HFRS
SuspensionIn Process26-Jun-19101717311Managing Misconduct159HC
SuspensionIn Process26-Jun-19101717628Managing Misconduct159HC
Stage 4Open12-Dec-19102054284Resolve Workplace Issues38HC
Stage 4Open05-Jul-19101412609Managing Performance152HC
Stage 4Open16-Apr-19101643891Resolve Workplace Issues210HFRS

 

1 ACCEPTED SOLUTION
Jimmy801
Community Champion
Community Champion

Hello @EmilyM2019 

 

this DAX-formula should work for you

YourNewColumn = if ([Organsiation]="HCC"&& [Activity Category]="Investigation" && [Count working days]>50; "Yes"; blank())


If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy 

View solution in original post

3 REPLIES 3
Jimmy801
Community Champion
Community Champion

Hello @EmilyM2019 

 

this DAX-formula should work for you

YourNewColumn = if ([Organsiation]="HCC"&& [Activity Category]="Investigation" && [Count working days]>50; "Yes"; blank())


If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy 

Thanks Jimmy, it's the && that I just couldn't get my head around.

 

Much appreciated.

Hello @EmilyM2019 

 

thanks for your feedback. It's very appreciated. I'm happy that i was able to help

 

Jimmy

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors