Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
kaweckil
New 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 3
lbendlin
Super User
Super 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" ?

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

I didn't say hardcoded. I said you need to bring your own filters when you construct the DAX query.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.