March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi, I've created a query in dax studio that exports the data, and I would like to use it inside of my BI Report, and also outside of the PowerBI universe as a separate function, running it regularly.
Two questions regarding this
1) How do I take the query and place it into my BI report? Cannot see anything on using the code within a report. I want to be able to run it from My BI report.
2) Is there a way I can save it outside of the PowerBI universe and use it as a separate function outside of PowerBI universe? I'd like to be able to run it, but so far it seems i have to open up DAX studio to run it.
Thank you!
Here's my DAX query
/* START QUERY BUILDER */
EVALUATE
SUMMARIZECOLUMNS(
'Table Name'[Accepted Date],
'Table Name'[Accepted Iter],
'Table Name'[AcceptedDate],
'Table Name'[AcceptedIter-Curr-7],
'Table Name'[Active Days],
'Table Name'[Active End],
'Table Name'[BI ID],
'Table Name'[BI Name],
'Table Name'[Epic],
'Table Name'[Epic ID],
KEEPFILTERS( FILTER( ALL( 'Table Name'[Active Days] ), 'Table Name'[Active Days] >= 0 )),
"AcceptedIterAll", [AcceptedIterAll],
"Active Epics Iter", [Active Epics Iter],
"DistinctEpics", [DistinctEpics],
"DistinctFeatures", [DistinctFeatures]
)
ORDER BY
'Table Name'[Accepted Date] ASC,
'Table Name'[Accepted Iter] ASC,
'Table Name'[AcceptedDate] ASC,
'Table Name'[AcceptedIter-Curr-7] ASC,
'Table Name'[Active Days] ASC,
'Table Name'[Active End] ASC,
'Table Name'[BI ID] ASC,
'Table Name'[BI Name] ASC,
'Table Name'[Epic] ASC,
'Table Name'[Epic ID] ASC
/* END QUERY BUILDER */
Solved! Go to Solution.
Hi @Anonymous ,
For your two questions, here are my views
If you want to apply the result of this dax query to your report, you just need to try to create a calculation table in PBI desktop and place the DAX expression after the Evaluate expression to achieve it, because the data model of PBI is the Analysis service data model used and the statement used is DAX.
As far as I know, the query created by the DAX statement is applied to the Analysis service data model. If you want to run it not only when you open the DAX studio, you can also connect to this PBI data model in the PBI desktop or through SSMS using the XMLA endpoint and query the data model to run it normally.
Dataset connectivity and management with the XMLA endpoint in Power BI - Power BI | Microsoft Learn
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
For your two questions, here are my views
If you want to apply the result of this dax query to your report, you just need to try to create a calculation table in PBI desktop and place the DAX expression after the Evaluate expression to achieve it, because the data model of PBI is the Analysis service data model used and the statement used is DAX.
As far as I know, the query created by the DAX statement is applied to the Analysis service data model. If you want to run it not only when you open the DAX studio, you can also connect to this PBI data model in the PBI desktop or through SSMS using the XMLA endpoint and query the data model to run it normally.
Dataset connectivity and management with the XMLA endpoint in Power BI - Power BI | Microsoft Learn
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
90 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
70 | |
68 |