On powerBI, we can easily filter data with joined table for example, but I would like to get the query behind the result, it's possible to extract the query DAX from exemple from a visual ?
Best Regards
Yes you can, first go on View->Performance analyzer
Then click start recording and refresh visuals:
And there you have the Copy query button which contains the underlying DAX query.
Related
I am trying to find an answer if it possible to automate creating powerBI reports for each unique value in one of columns(It's like filtering on whole report for one of the values and publish report than change value to next one and repeat steps for other values)? Is there any fast way to do it? I wrote program to filtering via link and clicking mouse than save links for each person to excel but i wonder if there is more reliable and faster way to do it. I am using PowerBI premium for user.
This is typically called "Report Bursting", or "Data Driven Subscriptions", and here's a walkthrough of how to do it with Power Automate and Power BI.
Why don't you leverage RLS instead of hardcoding filters?
I'm trying to copy a visual from one page to another in my dashboard, and want to edit the DAX Expression linked to the visual. The trouble is when I edit the DAX for a visual on Page 2, it updates the one on page 1 as well. How do I de-link the formula to update it on Page 2?
Thanks,
Viswanath
I believe you simply need to create two separate visuals in your report. One that displays the result evaluated by the first DAX code, one that displays the result evaluated by the second DAX code.
I have a report generated from a SQL query, having a due date column. My requirement is to create a slicer and whatever the date a user selects in the slicer the report should show all the data where due date is less than the selected slicer date.
I am not able to pass the slicer date to my SQL query.
Can you guide me guys in finding the best possible way?
This is not possible in general. Slicers and filters set on a report page cannot modify the model (e.g. calculated tables or calculated columns) and cannot modify the queries.
The only possible way to do this sort of thing is with a DirectQuery, which does it automatically in the background since it dynamically queries only the needed data. Otherwise, you need to pre-load all of the data that you intend to use in the report.
Using DirectQuery has significant limitations and may or may not work for your use case. Please check the limitations and considerations in the linked documentation for details.
I am trying to get the first 4 digits from a string from a table in Power BI. The connection is a live connection / Direct which does not allow me to edit the query. Also, I am unable to create a new column. So I have to stick with creating a new Measure.
Now, I am using the following formula to get what I need.
LocationCd = mid(vw_DW_Contracts[ContractNumber],1,5)
but, this is not working a the vw_DW_Contracts table cannot be used in a measure. Is there a workaround to such problem?
I do not have access to the analysis service so cannot make any modifications in the source.
Please help.
Thanks
but, this is not working a the vw_DW_Contracts table cannot be used in a measure.
I'm not sure what you mean by this, but I'm guessing the message you see is telling you that measures expect an aggregation. The formula you posted would be great as a calculated column where it can be evaluated row by row. Measures are aggregations over multiple rows.
If you are trying to make a new field that is the location code that can be used in visuals on a categorical axis, this should be a column rather than a measure. You could write a measure to show a location cd using something like LASTNONBLANK (mid(vw_DW_Contracts[ContractNumber],1,5), 1) but I doubt that is what you want.
I'm pretty new in Power BI and have a problem with the drill-through filter.
Here is what my table looks like:
When I add a drill-through filter on another report page, I can't use on this page right click-> drill-through whereas if I add a filter for the rows (KSt in this case) it works. I've tested it with several data types and everything except the date format seems to work. Do you have any ideas how to solve this issue?
Ok I solved this issue by selecting Time Period instead of Date Hierarchy. Now the drill-through filter works.