We're giving away 30 tickets for FREE! Share your story, your vision, or your hustle and tell us why YOU deserve a ticket.
Apply nowWin a FREE 3 Day Ticket to FabCon Vienna. Apply now
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 |
---|---|
13 | |
12 | |
8 | |
8 | |
6 |
User | Count |
---|---|
28 | |
20 | |
14 | |
11 | |
5 |