The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi Community,
I want to convert this CASE STATEMENT SQL Query to DAX?
SQL Query:
1. DayDiff(AddMonths(min(month),3),min(month)) AS tot_days, (Measure 1)
2. CASE WHEN daydiff(Now(),min(month)) > DayDiff(AddMonths(min(month),3),min(month)) THEN DayDiff(AddMonths(min(month),3),min(month)) ELSE daydiff(Now(),min(month)) end AS days_completed (Measure 2)
Is it possible?
Reg,
Dhana
@Anonymous
give some idea, instead of "Addmonths" what i can use there? I mean alternate DAX function.
this is the model view (Deals_Active) is my fact table here. Any Idea?
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
20 | |
12 | |
10 | |
7 |