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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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

@amitchandak pls help.

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

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Users online (25)