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

Case Statement from One Table & Two tables

Hi I am new to DAX and trying to get the following measures to work. 

 

Table 1: ID , Column1, DateColumn2, Column 7

Table2: ID, DateColumn3, DateColumn4, DateColumn5, Column5,Column6

My Measures

 

Measure1:

COUNT( CASE WHEN
Table2.DateColumn3>= Table2.DateColumn4
AND Table2.Column5 = 'xyz' AND Column6 IS NULL
THEN Table2.ID END)

 

Measure2:

CASE WHEN Table1. DateColumn2 >= Table2.DateColumn3 AND (Table1. DateColumn2 <= Table2.DateColumn4 OR Table2.DateColumn3 IS NULL) THEN 1 ELSE 0 END

 

Measure3:

COUNT(CASE WHEN Table1. DateColumn2 >= Table2.DateColumn3 AND (Table1. DateColumn2 <= Table2.DateColumn5 OR Table2.DateColumn4 IS NULL) THEN Table1.ID END)

 

0 REPLIES 0

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI 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.