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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

DAX Query Clarification

Hi,

 

I am having a few issues troubleshooting a DAX Query on the following.

 

I need to return a count value where by "ETA_Disch" is more then 7 Days old, & the "Recognized_WIP" is showing 0

 

The current EXCEL foruma ustilised is =IF(AND(TODAY()-BS15>7,BB15>1),1,0)

 

Attached SS for review.

 

Thanks in adance for any assistance.

 

Screen Shot 2020-06-03 at 15.24.46.png

 

 

1 ACCEPTED SOLUTION

@Anonymous ,

 

You can also try

 

var _a = 'Table'[ETA_Disch]

var _dd = DATEDIFF(_a,TODAY(),DAY)

RETURN

IF( _dd > 7 && 'Table'[Recognized_WIP] = 0,1,0)

 

Regards,

HN

View solution in original post

4 REPLIES 4
harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

 

 

var _a = MAX('Table'[ETA_Disch])

var _dd = DATEDIFF(Today(),_a,DAY)

RETURN

IF( _dd > 7 && 'Table'[Recognized_WIP]>1,1,0)

 

 

Regards,

Harsh Nathani

 

Anonymous
Not applicable

Hi Harsh,

 

Thanks for your help here.

 

Apologies for the delay, I instered the below query and it returnd a value but only 0 and no 1 counts.

 

Please see attached for your reviewScreen ShotScreen Shot

Hi @Anonymous ,

 

Please create a Calculated Column

 

var _a = 'Table'[ETA_Disch]

var _dd = DATEDIFF(_a,TODAY(),DAY)

RETURN

IF( _dd > 7 && 'Table'[Recognized_WIP]>1,1,0)

 

Regards,

Harsh Nathani

@Anonymous ,

 

You can also try

 

var _a = 'Table'[ETA_Disch]

var _dd = DATEDIFF(_a,TODAY(),DAY)

RETURN

IF( _dd > 7 && 'Table'[Recognized_WIP] = 0,1,0)

 

Regards,

HN

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.