directquery
44 TopicsWhen using DAX in a semantic model will Fabric fall back to Direct Query
We have a semantic model created and inside we have a main date table. We wanted to create other tables based on this date table, whilst still using DirectLake for performance. Initially we tried creating views but realised that views fall back to DirectQuery mode when trying to use them in a filter. So I wondered if alternatively we could use DAX instead? Reading through the documentation here Direct Lake overview - Microsoft Fabric | Microsoft Learn it mentions "Import and Direct Lake storage modes use the VertiPaq engine to process DAX queries and return results to the Power BI report and user" so I presume that mean it won't fall back to DirectQuery mode but I wanted to check before I start the laborious process of changing them all to DAXSolved1.5KViews0likes6CommentsDirectQuery with ClickHouse in Power BI Report Server?
Hi everyone, I’m trying to use DirectQuery with a ClickHouse data source in Power BI Report Server. In Power BI Desktop the ClickHouse connector lets me work in DirectQuery mode without any issues. However, the same connector is not available in Power BI Report Server. The ClickHouse documentation (see https://clickhouse.com/docs/integrations/powerbi) suggests using an ODBC connection for the server version, but the ODBC driver only supports Import mode. Because I’m dealing with several billions of rows, Import mode is not feasible for me. Can anyone confirm whether DirectQuery with ClickHouse is possible in Power BI Report Server? If it is supported, could you point me to the required steps or a suitable driver? Otherwise, are there any work‑arounds to achieve near‑real‑time querying on such large datasets? Thank you for your help!Solved3.2KViews0likes4CommentsDirectQuery latitude and longitude for map
I'm working on a project where we have an MQTT GPS locator on our site. We want to display that locator's current location. We are sending the sensor's data to a Streaming Dataset. I can see and create a table with all of the updates (I have a timestamp and an "ID" where I'm evaluating the time in UNIX format to give a unique identifier). I want to show the current location, therefore the most recent snapshot. I keep getting stuck evaluating the last row due to DirectQuery restrictions. I finally got calculate(max...)) and lookupvalue to give me a single latitude and longitude, but when I put those into the Map visual I get "To display latitude and longitude pairs, set the aggregate for Latitude and Longitude to Don't summarize" which I can't do with a measure. I was worried Map was aggregating the values anyway (dispite there being only one value), but I can't make a measure that it will take as a Location. Feeling stuck on something seemingly simple!!!!Solved1KViews0likes5CommentsHelp with FIFO logic with two Tables in DirectQuery
Hello, I'm struggling with creating a way to measure and/or visualize if a Load Unit that has been delivered to us, was also unloaded first. Deliveries have Priority 1-3 so what we want is, that the first delivery arrived is also the one that is unloaded first. I'm stuck with working in DQ and have to tables to do this- Transports Table and Unloading Table Transports Table has the Columns LoadUnitId, Priority and ActualArrival Timestamp. Unloading Table has the column StarTime Unloading. Something like this: LoadUnitId Priority ActualArrival StartTime Unloading 1234 1 01.01.2025 08:00 01.01.2025 08:15 4321 2 01.01.2025 07:35 01.01.2025 07:56 2134 1 01.01.2025 07:15 01.01.2025 08:19 What kind of expression can be used to check if a Load Unit that has the same priority, was delivered before another one, but unloaded later. I've been thinking of using Ranks but DirectQuery is a bit tricky and won't allow that. Maybe Flags would do the trick but I'm unsure how to use them in this case exactly. Any help would be highly appreciated. Thank you very much 🙂843Views0likes6CommentsDirectQuery Impala Connector for Power BI Report Server
According to the documentation, Scheduled Refresh and DirectQuery are not supported for the Impala connector in Power BI Report Server? https://docs.microsoft.com/en-us/power-bi/report-server/data-sources However, in the Power BI Desktop for Report Server, DirectQuery is one of the options for connection. Can anyone clarify if DirectQuery is really supported or not for the Impala Connector in Power BI Report Server? Thanks!1.5KViews1like1CommentHow to create dynamic filter in DAX query
Hello, I want to dynamically filter my data in PBI Report Builder using DAX expression. The columns in the filter will be added dynamically based on what the user selects in the report. It is a embedded paginated report with a PBI Semantic model as it's dataset. The PBI Semantic Model dataset is created using DirectQuery. I am sharing the semantic model between PBI Report and Paginated Report. Paginated Report is required to export the tabular report data. I am using the following DAX : DEFINE VAR filters = IF(NOT(ISBLANK(@param1)), "MyTable[col1]=" & @param1, BLANK()) EVALUATE FILTER(MyTable, filters) I get the following error: The query contains the 'param1' parameter, which is not declared. Please note that I have created a Query Parameter named param1 in the DataSet properties and associated it with respectvie report parameter. The report parameters are passed to the report in the payload. Need help. Thank youSolved2.1KViews0likes3CommentsDirectQuery from Report Server to remote MSSQL-Server isn't working
Hello Community, i am trying to configure a working DirectQuery from my Report Server to an MSSQL-Server which is not running ob the same server. But i can't figure out how to configure the authentication in the right way. I build an report with DirectQuery in Power IB Desktop, everything works fine. When i publish the report to my report server and start it in the web frontend, i get an error message: An unexpected error occurred. Please try again later. Please try again later or contact support. If you contact support, please provide these details. We couldn't connect to the Analysis Services server. Make sure you've entered the connection string correctly. At the same time the log of the MSSQL-Server shows an login failure "Login failed for user 'NT AUTHORITY\ANONYMOUS'." from the Report Server. So it seems that my login at the web frontend isn't passed to the MSSQL-Server. I've done some research and found an possible solution in the documentation: https://docs.microsoft.com/en-US/power-bi/report-server/configure-kerberos-powerbi-reports A Domain-Admin helped me to configure the SPNs in the way that the documentation says, but it won't work. Here are some information about the current setup: Server 1: "Domain\Server_MSSQL" Application: MSSQL-Server 2019 (Developer); only Windows-Authentication Instance: default Service "MSSQLSERVER": User "Domain\SQL-Server" Service "MSSQLServerOLAPService": User "Domain\SQL-Server-Analysis" Service "SQLBrowser": User "Local Service" Server 2: "Domain\Server_PBIRS" Application: Power Bi Report Server Jan 2022 (Developer) Service "PowerBIReportServer": User "Domain\PBIRS-Service" PBIRS-User Datenbank: "Domain\PBRIS-DB" PBIRS-User Unattended User: "Domain\PBIRS-Service" (for testing, will be "Domain\PBIRS-Unattended" after Problem is solved) *Server- and Usernames in here are just dummys* We have done the following steps: Edit rsreportserver.config <Authentication> <AuthenticationTypes> <RSWindowsNTLM/> <RSWindowsKerberos/> </AuthenticationTypes> <EnableAuthPersistence>true</EnableAuthPersistence> <RSWindowsExtendedProtectionLevel>Off</RSWindowsExtendedProtectionLevel> <RSWindowsExtendedProtectionScenario>Proxy</RSWindowsExtendedProtectionScenario> </Authentication> Register SPNs SetSpn -l *Domain\Server_MSSQL* Registered SPN for CN=*Server_MSSQL*,OU=*Datenbank-Computer*: MSOLAPDisco.3/*Server_MSSQL* MSOLAPDisco.3/*Server_MSSQL*.*Domain* WSMAN/*Server_MSSQL* WSMAN/*Server_MSSQL*.*Domain* TERMSRV/*Server_MSSQL* TERMSRV/*Server_MSSQL*.*Domain* RestrictedKrbHost/*Server_MSSQL* HOST/*Server_MSSQL* RestrictedKrbHost/*Server_MSSQL*.*Domain* HOST/*Server_MSSQL*.*Domain* SetSpn -l *Domain\Server_PBIRS* Registered SPN for CN=*Server_PBIRS*,OU=*Computer*: WSMAN/*Server_PBIRS* WSMAN/*Server_PBIRS*.*Domain* TERMSRV/*Server_PBIRS* TERMSRV/*Server_PBIRS*.*Domain* RestrictedKrbHost/*Server_PBIRS* HOST/*Server_PBIRS* RestrictedKrbHost/*Server_PBIRS*.*Domain* HOST/*Server_PBIRS*.*Domain* SetSpn -l *Domain\PBIRS-Service* Registered SPN for CN=*PBIRS-Service*,OU=*Service-User*: HTTP/*Server_PBIRS* http/*Server_PBIRS*.*Domain* SetSpn -l *Domain\SQL-Server-Analysis* Registered SPN for für CN=*SQL-Server-Analysis*,OU=*Service-User*: MSOLAPSvc.3/*Server_MSSQL* MSOLAPSvc.3/*Server_MSSQL*.*Domain* SetSpn -l *Domain\SQL-Server* Registered SPN for für CN=*SQL-Server*,OU=*User*: MSSQLSvc/*SQL-Server* MSSQLSvc/*SQL-Server*.*Domain* Configure Delegations for "Domain\PBIRS-Service" Trust this user for delegation to specific services only Use any authentication protocol Services Service Type User oder Computer Port Service Name MSOLAPDisco.3 *Server_MSSQL* MSOLAPSvc.3 *Server_MSSQL*.*Domain* MSSQLSvc *Server_MSSQL*.*Domain* We think we missed some detail, but can't figure out by ourselfs what it is. So i hope someone can help us to fix it, so i can start installing the productive system.1.7KViews0likes6CommentsRLS on DirectQuery
Greetings everyone! I'm having trouble configuring the RLS for my report. I've searched several sources on youtube, but nothing has been able to help me. At first I have 2 tables: And I configured the RLS as shown in the image below: When I use EmailBP from BPs por Entidade table in a slicer, I can filter PEOPLE VW_FACT_INDI table normally. However, when I simulate the role in RLS, BPs por Entidade is filtered, but PEOPLE VW_FACT_INDI is not. Why is that? How can I solve this problem? Best Regards,Solved2.6KViews0likes6Commentsis it possible to publish report consist of column that's LOOKUPVALUE-ing towards DirectQuery data?
Is it possible to publish a Power BI report with a table that contains columns created using LOOKUPVALUE on DirectQuery data? I'm already a Pro user. I encountered several error messages with this setup before, but I'm not sure if this was the actual problem. Table 1 (local) : No Item 1 Apple 2 Banana 2 Banana 3 Orange 4 Guava 4 Guava Table 2 (direct query) No Status 1 True 2 False 3 True 4 False = LOOKUPVALUE('Table 2'[Status],'Table 2'[No],'Table 1'[No]) Table 1 result: No Item Status 1 Apple True 2 Banana False 2 Banana False 3 Orange True 4 Guava False 4 Guava False Need help, thanks!Solved599Views0likes2Comments[Error] Couldn't load the data for this visual in DirectQuery mode
Hello, we are currently encountering an issue regarding data in the "Direct Query" mode: Within the Slicer: If it's single selection, the visualization chart encounters the following error: [OLE DB or ODBC error: [Expression.Error] Unable to fold the expression to the data source, please try a simpler expression] (as shown in picture below). If it's multi-selection, the visualization chart displays correctly. May I ask what could be the cause of this issue?