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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
shan
Regular Visitor

how to modify report query where condition pragmatically

I have a multi-tenant application, My approach is, for each tenant I will create a separate workspace in online power bi and upload report from desktop power bi. The reports are stored as .pbix file. The reports are same for all clients only different is in the query, I hardcoding tenant condition (like where tenantid =xxxxxx). For each new tenant signup, I will manually create a workspace and open report in power bi desktop and change the tenant condition, then be uploading to the new workspace.

 

Now I planning to do this programmatically, but I stuck on how to I can modify the report query where condition programmatically and uploading to workspace

 

1 ACCEPTED SOLUTION

Thanks for your reply. based on the link (click here) we can upload the file to online power bi

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @shan,

 

>>Now I planning to do this programmatically, but I stuck on how to I can modify the report query where condition programmatically and uploading to workspace

I'm afraid that you can't achieve this operations. Current power bi only support to manually choose the publish workspace.

Maybe you can try to submit this to ideas forum.

 

Regards,

Xiaoxin Sheng

Thanks for your reply. based on the link (click here) we can upload the file to online power bi

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.