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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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