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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
pchekuru
Frequent Visitor

How to write below case statements in DAX

There are three tables involved in below statement. Table a, Table b, Table c.

 

COUNT (
DISTINCT CASE
WHEN a.PARTICIPANT_STATUS = 'No Show'
AND b.EVT_END_DT >= c.WEEK_END_DT
OR a.PARTICIPANT_STATUS NOT IN ('No Show')
AND NVL (
a.reg_dt,
ADD_MONTHS (
TO_DATE ('2019-06-21', 'YYYY-MM-DD'),
73)) >= c.WEEK_END_DT
AND a.cancel_dt <=
c.WEEK_END_DT
AND NVL (
a.transfer_dt
ADD_MONTHS (
TO_DATE ('2019-06-21', 'YYYY-MM-DD'),
73)) >= c.WEEK_END_DT
THEN
a.ROW_WID
END)

1 REPLY 1
Anonymous
Not applicable

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.