Forum Discussion
Nishant77Goel
3 years agoFrequent Visitor
use select field parameter value to create a column
I have created a field parameter with 4 different dates using modelling tab. Based on selection in field parameter I want to create a column that flags date (YES/ NO) falling in last 180 days from to...
Nishant77Goel
3 years agoFrequent Visitor
Selected Parameter = maxx(filter('Date Value', 'Date Value'[Date Value Order] = SELECTEDVALUE('Date Value'[Date Value Order])), 'Date Value'[Date Value Fields])
based on the selected Parameter wants to calculate last 180 days on that column.
Last 180 days = IF([Selected Parameter] > (TODAY()-180),"1","0")
This is giving error that the values/ Format are not matched one is date and other is text
This is giving error that the values/ Format are not matched one is date and other is text
- v-xiaosun-msft3 years agoCommunity Support
Please check the format of your "Selected Parameter", if it is a text, try to use FORMAT function or Power Query to convert it to date.
If this can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Community Support Team _ xiaosunIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.