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 I
Super User I

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 I
Super User I

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!!!

Highlighted
Super User I
Super User I

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 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.

Top Solution Authors
Top Kudoed Authors