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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

DAX Help

Team,

 

Please help me to fix the below DAX code error. I am a begginer in DAX, please help.

BalaKiranM_0-1670484233813.png

 

IF(AND(Query1[Apply Date]="9/26/2022", Query1[Apply Date]="10/20/2022")

&& Query1[Pay Code Name]="Total Hours" || (((Query1[Employment Status]>="10/20/2022"
&& Query1[Employment Status]="Terminated" || Query1[Termination Date]=BLANK()
&& Query1[Pay Rule Name] IN {"FD Salary","UTF Salary"}
&& Query1[Seniority Rank Date]<="10/20/2022"))), "Yes", "No")

 

Thanks,

Bala

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous , Try like

 

if(
OR(Query1[Apply Date]= date( 2022,9,26) , Query1[Apply Date]= date(2022,10,20))
&& Query1[Pay Code Name]="Total Hours" || (((Query1[Employment Status]>= date(2022,10,20))
&& (Query1[Employment Status]="Terminated" || isblank(Query1[Termination Date]))
&& Query1[Pay Rule Name] IN {"FD Salary","UTF Salary"}
&& Query1[Seniority Rank Date]<=date(2022,10,20))), "Yes", "No")

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
Anonymous
Not applicable

Thanks Amit sir for your quick code fix, that is the reason I tagged your name.

It shows another error after I took your DAX code, pls help sir.

BalaKiranM_0-1670494999029.png

 

Anonymous
Not applicable

@amitchandak pls help

Anonymous
Not applicable

@amitchandak pls help.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.