web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Dynamically Filter kno...
Copilot Studio
Unanswered

Dynamically Filter knowledge sources(dataverse table) in Copilot Studio

(1) ShareShare
ReportReport
Posted on by 51
Hello Community,

I am trying filter the dataverse table based on user query. 

For example: If they user asks "what is the total revenue generated previous month"

I want the copilot to filter the dataverse table used as knowledge source by month then calculate the total revenue by totalling all the values in Amount column.

If I write a query like "Please total all the values in Amount Column in Sales_Data table where the value Month column is AUG-24" it will give me a response. But as a developer I do not expect the user to know all the column names in dataverse table which will help him to write a clear and concise prompt.

The above mentioned was the first approach which is not feasible, So the second approach was to create topics

I created a topic called as Total Revenue which would trigger whenever the user typed ''total revenue''. But this approach is not open-end because what if the typed "What is the total revenue past month". Since the question contains the phrase total revenue, the particular topic would trigger giving the answer for total revenue but not for past month.

Please let me know if there a possibility of dynamically filtering the dataverse table used as knowledge source.

thanks in advance!
 
Categories:
I have the same question (0)
  • fchopo Profile Picture
    8,003 Moderator on at
    Hi @JasonAbba
     
    That's an interesting question, and it's basically related to topic design. I would recommend you to have a look at the Bot Building Handbook which contains some really useful resources about topic design.
     
    In your specific case, the only thing that comes to my mind is that you trigger a topic when user types "total revenue", and after that, you need to ask the user the period (last month, last 3 months, current, etc), so you do the correct calculation. Not the ideal situation, but that could solve your problem.
     
    Hope that helps!
    Ferran
  • JasonAbba Profile Picture
    51 on at
    Hello @fchopo

    Thank you for sharing the resource link, I will surely go through it and come back if if I find any answers!

    Regards
    Jason
  • Suggested answer
    sandeepstw Profile Picture
    312 Moderator on at

    Hi,

    For this, we'll need a custom architecture. If it's database-related, you'll need to handle custom query creation based on natural language inputs, using dynamically generated queries.

    This can be achieved with a combination of vector databases and LLMs like Azure OpenAI and Cosmos DB.

    Feel free to DM me if you'd like to discuss further.

    Thanks,
    Sandeep

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 250 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 197 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 103 Moderator

Last 30 days Overall leaderboard