I have a column in my table where the the client in some instances will be seen twice a year.
i wanted to know how can i write a DAXmeasure that contains a part of a string?
For example in my column i may have a value that says Jan, Jan/Jul. When i use the calculate function, is there a way i can write the filter part of the calculate function by incorporating if the field contains Jan to include both Jan & Jan/Jul? (Maybe a wildcard?)
Thank you for the response. Unfortunately I can’t seem to find a way of writing some logic into a calculated column. The Fact table has in excess of 44K rows and am not sure how to go about this.
When building the Model & Writing the DAX measures, i’m trying to understand what is good practice and your comments makes sense.
What I have currently done is used variables and then a switch statement based on the month selection.
We review our clients annually but in some instances we review them half-yearly. What i am trying to achieve is to see what reviews we have projected in the future and manage expectations around that.
The review date unfortunately is not a date field but only contains a string with the month name. Eg: Jan, Jan/Jul
I was also trying to somehow link this Fact Table to my Dates Lookup table.
Before i asked the question this is how i went about building the measure:
I did that for each month and it was long, hence my initial question.
I considered you second suggestion (Splitting Columns) and I must say this suggestion was even more effective and i wanted to share the measure i wrote to achieve this: