Forum Discussion
Problem to filter visual
Hello, I hope you are well
I have a column, called Year_Month, where I have a combination between the year and the month, for example 202101, 202102, etc etc
I have to filter a visual by two values from this column, 202105 and 202005:
I made a measure in DAX to filter it, which is the following:
This formula works, but it has the dates as string type
So, I did this measurement in DAX so that based on current date it will calculate the value I need, for this year and last year.
Does anyone know why that will happen?
Thank you!
2 Replies
- Greg_DecklerCommunity Champion
Vsaez A guess but check your data types and make sure that everything is a string and that you don't have a whole number data type in there for some reason. If you do, try adding & "" to it to force it to a string.
- v-janeyg-msftCommunity Support
Hi, Vsaez
Is your problem been solved? I see that you didn't follow up. Have you checked the reply of others?
According to you description, The result of your two measures is not one thing, one is the value of sum, and the other is to return date. So I don't understand your question very well, Can you explain it in detail? Or share more information like your modified code,etc. So we can help you soon.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.