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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors