Forum Discussion
kaweckil
2 years agoNew Member
Dynamically query the dataset
Hi,
I want to query a details page to export to csv.
How would i dynamically update the filter condition of my table? I've used SELECTEDVALUE() but no luck.
Thanks!
3 Replies
- lbendlinSuper User
SELECTEDVALUE needs a filter context which doesn't exist when you export. You need to bring your own filters when you run the DAX query against the semantic model.
what's a "details page" ?
- kaweckilNew Member
OK - do you mean that the filter value must be hard coded? The link applies filters on the page from the URL so I was trying to get the those values to use in the dax query
- lbendlinSuper User
I didn't say hardcoded. I said you need to bring your own filters when you construct the DAX query.