I have a requirement to provide the detail information regarding Employee Sales shown in the cube in an SSRS report.
I have Employee Dimension, Transaction Dates and count of sales made. Requirement is to pass the Employee ID, Min Transaction Date, Max Transaction Date for the Employee to an SSRS report which will query the underlying fact /dimension table (NOT CUBE) and provide the detailed data.
I have set the Report Server And Path accurately and ensured that the parameter names match with that in the SSRS Report.
Just to establish the correctness of process I am trying to initially hard-code the EmployeeID,Startdate and EndDate in the SSAS Reporting Action Parameter List.
The Challenges I am Facing are as below :
I pass the EmployeeId as UrlEscapeFragment(Cstr(7070707)) and the report action is available on the cube , and opens the report , However the SSRS report does not use this parameter supplied in the URL.
I am unable to pass a date value to the report , I tried the same Syntax and UrlEscapeFragment(Cstr(1-Jan-2016)) and this causes the report action to disappear when browsing the cube. I understand this is because there is a syntax issue.
Please bear with me if these queries are trivial as I am fairly new to SSAS and MDX and am struggling to successfully establish a connection to the SSRS report from the cube.
Could anyone please help/advise.
Further down I guess I would need to pass these values dynamically but as a first step I am keen to establish the correctness of this all.
Thanks in advance.
When i replaced the path with report server path instead of report manager , the parameter is being reflected in the report.
Also Date was updated as UrlEscapeFragment(Cstr("1"+"/1"+"/2016")) and was picked up.
This has now been replaced with dynamic values by using Dimension.Attribute.CurrentMember.Name.
Related
I am new here, so apologies upfront if my structure is not correct, will try my best to make sure the outline is as neat as possible.
Problem
I have a powerBI report that consists of a home page and sub-report. The one report is called Home which shows a summary of all the employee type output information and the other is Employee type which shows information per type. I am using PowerAutomate to export those reports (consolidated) and save them into a sharepoint. The mechanism is working as intended for the home report, but is not for the Employee sub-report.
I have noticed that in the Employee subreport I have a filter for Employee types which has:
{Half-Time, Permanent, Contractor, Vendor-Contractor}
Each selection in the drop down will present different results in the report.
My PowerAutomate flow is an approval process for stakeholders to sign off the reports per Employee Type. when ever I trigger the action button on my PowerBI report it runs the flow and saves the Export to file for PowerBI report to my sharepoint, with Home page correct, but Employee sub-report page always showing the first selection Employee type within the array(Half-Time), where I want it to show the report based on the user selected results.
Here are the inputs I have added to the Export PowerBI action in PowerAutomate
I am not sure what I am doing wrong, I have tried a myriad of different options even tried the filter for EmployeeType, but it creates a loop in flow and doesnt yield any of the results I need.Any help would be much appreciated
I tried adding the report sections in the PowerBI action which did consolidate a PDF for the Home page and Employee sub-report, but kept showing the fist item in the filter selection as opposed to user selected item with respective results.
I also tried initializing a variable to show user selected item in the Employee type array, this did nothing, same results as above.
I am using a SQL Server Database via Direct Query.
There is a table containing
Country
Allegation
Serial numbers (whole number; no dedicated SN ranges)
I added all three as slicer to the repoert.
Now my challenge is that the user have to select a serial number and defined amount of serial number items before and after have to be shown.
My problem is now that when a SN is selected the only the corresponding country and allegation is shown.
Now I added three parameters to my report and changed my queries that the parameters are reflected. In the query view everything works perfect. But as I switched back to the report i get following error message:
That looked crazy to me and I connected my report to DAX-Studio and figured out when the transfered M-parameters are commented out the DAX query runs successful.
Is there a possibility that these parameters are not transfered to DAX our is there another solution?
I have a recommendation for you; but I am not sure It will solve your problem. Let's start:
Screen_01
Select your parameter on the Queries Pane
Screen_02
Go to properties on the Query Tab.
Screen_03
Ensure that Enable load to report box is unchecked. Click Ok. Then go to your report and test it.
I have been trying to find an answer to my problem but to no avail, so hoping someone is able to provide some ideas / advice on if this is possible and if so, how to go about it? I've tried various things and none have worked.
We create views within SQL and then connect to them using 'Import' from the Data Connectivity Mode when connecting to the SQL Server from within Power BI. Within the view, we use tables that contain a 'Valid From Date' and 'Valid To Date' for each row of data, so when a change occurs a row is closed off and a new row is created. This is so we can limit the rows of data within the table.
When trying to create a report within Power BI, we need to make it that the end user can use a data drop down list to select a date and the data within the whole of the report shows any rows that the selected date falls on or between the Valid From and Valid To dates. We use Cards, Tables, Matrix and Charts within our reports, so all would need to reflect the date selected by the user.
I have tried various methods that I could think to get it to work but each have had limitations where it either doesn't work or only partly works.
Any help / advice on this would be really appreciated.
Many Thanks
Jon
I'm brand new to Power BI and I'm used to setting up most of my data in SQL Server (for SSRS). I have a data set and I was able to add in a Calendar table with my dates. My goal is to do a Year-over-year comparison. I got the year-over-year part working with the help of a couple of tutorials, but I want to restrict the report output to only data up to the last end of month (otherwise the YoY shows a case differential for dates out into 2021 - not helpful). I need a dynamic filter and all I seem to be able to set are static filters. This filter needs to be on the data itself - nothing a user can or should touch. Any help would be appreciated.
I noticed very odd thing that Daxstudio allows you to view original table name. It is a bit niuanse because when you rename table created in M then Daxstudio still refers to it using original table name, not the new name. Here is how to reproduce the bug.
Power BI > Home > Enter Data
Name the table RedTable.
Run a query in Daxstudio:
EVALUATE
DISTINCT('RedTable'[Column1])
Now rename the table to BlueTable:
And run the query in Daxstudio for a new table name:
You can still see the original table name in the Query column of Server Timings.
Is there a way to change this original table name created with M?
I can add that this bug is applicable only to tables created with M (be it Enter Data or plug to Server). This bug is not reproducible with DAX tables. The DAX tables are updated after you change their name and actual (not original) name is display in Query column of Server Timings of Daxstudio.
This is not a problem of DAX Studio, even though we could try to fix it in DAX Studio. :)
Here is what happens: the Tabular model (used also by Power BI) has an ID for each object and then a Name. The ID is assigned by the Power BI and Visual Studio UI when you create an entity (table/column/...). Visual Studio shows the ID as a readonly property, whereas Power BI doesn't show that property at all.
The ID is used internally to reference the objects in the Tabular Object Model (TOM). It is also used to identify column in the interaction between Formula Engine and Storage Engine.
The Storage Engine queries captured by DAX Studio are messages intercepted with a debugging session connected to the Analysis Services session and in these messages the text represents entities (in particular table names) through their ID rather than through the Name property.
As Microsoft would say, this is "by design".
So far, DAX Studio simply capture the text of the storage engine queries and display this information.
However, DAX Studio "massages" the text, removing a lot of "noise" and making the query more readable. During this phase, it is possible to consider renaming IDs with Names.
I just created a feature request. That was easy. When to implement the feature, finding the time is much harder!