Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I am using Power BI embedded QnA feature in my application, this feature is awesome but it cannot answer questions asked in completely natural language by the user as every user is not familiar with the data model. I am trying to intercept this feature with a chatbot where the string of text first goes into the chatbot and then it is manipulated in a way which is understood by Power BI and then pasted into the Power BI QnA box to return the answers to user's questions. Is there a way to copy text from one text box to QnA box in Power BI embedded. I am trying to do it using javascript code, using the 'div' id of the QnA box but it isn't working. Has anyone tried it or knows if it is possible?
Below is the code that I'm using, where the text box that I have created has id 'source' and QnA box of Power BI embedded has id 'utteranceContent'
<input id="source" type="text" oninput="copyData('source', 'utteranceContent')" /> <hr style="clear:both;">
<script type="text/javascript">
function copyData(sourceId, targetId) {
var data = document.getElementById(sourceId).value;
document.getElementById(targetId).innerHTML = data;
}
</script>
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
4 | |
2 | |
1 | |
1 |
User | Count |
---|---|
29 | |
3 | |
3 | |
2 | |
2 |