cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Year to date, if else DAX

Hi, 

 

I'm trying to create a calculated column, that gives me a 1 is a date is within a parameter, and 0 if it is not. currently my DAX looks like this, but it is not working?

 

Any help?

 

 

 

 

DAX_YearTickets.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User II
Super User II

Re: Year to date, if else DAX

@annakentmuller 

You need to include RETURN after (under) the second VAR expression.





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

3 REPLIES 3
Highlighted
Super User II
Super User II

Re: Year to date, if else DAX

@annakentmuller 

You need to include RETURN after (under) the second VAR expression.





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

Highlighted
Frequent Visitor

Re: Year to date, if else DAX

Thank you!!!

Super User II
Super User II

Re: Year to date, if else DAX

👍@annakentmuller 

 

👍





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements

August Community Highlights

Check out a full recap of the month!

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors