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

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.

Reply
Vitalth
Frequent Visitor

Datamart : Using queries

Hi,

I tried to use Queries in datamart in order to use it on Web API executeQueries.
If I create a query in my Datamart, this one has a name. (I don't how to change the name but it is another problem).


In POST API I try (in my payload) :

{
  "queries": [
    {
      "query""EVALUATE VALUES('{My Query Name}')"
    }
  ]
}
 
But the answer is :
{
    "error": {
        ...,
                        "value""Query (1, 17) Cannot find table 'SQL query 1'."
       ...
}
 
Do you know if is it possible to use Queries in the Web API and if yes how to use it.
 
Thanks for your support.
2 REPLIES 2
Vitalth
Frequent Visitor

Thanks for your answer and support

I already saw the last link you gave me and that's why I wrote my post. I found that very interesting and I wanted to see if we can combine features described in second links with theses in the third links. I didn't know the second links you give me. (I saw the possibility to create some query in datamart but I try myself without documentation). So the second link was very helpfull for me for other questions. Thanks.
But I still don't know how to combine creation of query in datamart and execute them in REST API ExecuteQuery

v-zhangti
Community Support
Community Support

Hi, @Vitalth 

 

Please refer to the following links in the hopes of helping you.

Solved: Datamart SQL Queries - Microsoft Power BI Community

Announcing improvements to Datamart Query editor | Microsoft Power BI Blog | Microsoft Power BI

Datasets - Execute Queries - REST API (Power BI Power BI REST APIs) | Microsoft Learn

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors