I have two tables. Table one is yesterday's data and Table 2 is today's data. Visual 1 is a visual based on Table 1 and Visual 2 is a visual based on Table 2. These two visuals are identical in terms of their layout and filters. I have been tasked to create a 3rd visual which is the delta between the numbers in the two visuals. What is the best way to approach this?
That depends on the relationship between the tables, but assuming the tables are basically identical and have a 1-to-1 relationship you would just use ='Table2'[ColumnX]-'Table1'[ColumnX]
Related
I am relatively new to PowerBI and struggling to accomplish the following task.
I have in total 3 Tables. 2 Tables are available and the 3rd is the outcome I am interested in.
Table 1 is a lookup table with yearly values for each option of a certain property.
Table 2 is a user input table containing the project list with a property that can be equal to one of the options in Table 1.
I am mostly interested in Mapping the projects with their yearly development based on one property. The outcome is represented in Table 3.
At the end of the day, I would like to plot the Sum across all projects against the year column (The 2 columns in red).
I hope someone can help here in finding the appropriate DAX logic. Thanks in advance!
You can bring the tables into a Power BI model, and from the modeling tab you can create relationships to accomplish this. Let me know if this is helpful.
I have the tables as per the below diagram
There are vouchers in LedgerTrans connected with other 3 tables (but each one is independent of other 2 tables - means a voucher will be available in one of the 3 tables - same voucher won't be available across the 3 Project Trans tables).
I have given the connection as per below and the values are populating in 3 different Matrix visuals for each ProjTrans. The problem I am facing is, all the 3 visuals are summing up to the same amount, though the vouchers are showing correctly in each visual respectively. Is my approach wrong (the connection type)?
The 2nd problem is, I brought in the Project table to keep it as a slicer. The same project could be available in all the 3 ProjTrans. But when I select a project in the slicer, only the table with active connection is getting filtered out. The other 2 matrices are showing blank.
How to achieve active connections for all the 3 ProjTrans tables with a single Project table since Power BI would not allow more than 1 active connection?
The problem here isn't that Power BI does not allow more than one active connection. What is not allowed is having multiple paths for one table to filter another table since this results in ambiguities. Since you have bidirectional many-to-many relationships from the fProject tables to the fLedgerTrans table, you would have three distinct paths from dProject to fLedgerTrans if all your relationships were active.
The quickest fix would be to make all of the many-to-many relationships filter only in one direction (fLedgerTrans filters fProject tables). Then you should be able to activate the currently inactive relationships.
More generally, bidirectional many-to-many relationships are considered bad practice. I'd recommend reading the following article, especially if you don't quite understand what I've explained above:
Bidirectional relationships and ambiguity in DAX
I am new to Power BI and with the limited time given, I am stuck at how to come up with:
Below Table B-Row1 ("1/20" and "M"-Monday cell) - how to
specifically place the date measures in their specific cell and put
it in one column?
How can I merge the cells under the Total column?
How to add all the numbers from the Type1 and Type2 columns and place it in the merged cell in #2?
Any clues/direction/links on how to achieve the Target Table B below will be much appreciated.
PS. Below Table A. Current is just using Matrix Visualization in Power BI.
You can't exactly do what you are after. PowerBI allows you to rapidly put amazing visuals together however that comes at the price of lack of (easy) flexibility. You could build your own custom visual or look in App Source for a visual that does this, or build the Visual in some other tool (via custom code).
However, I'd recommend sticking with the PowerBI matrix, which will give you a cascading drill down and work out how best to align your data to it and other out of the box visuals. Once you start to delve in to convoluted work-arounds to give users data in exactly the format they request you start to burn a lot of time. Look for alternatives to tell the data's story and work with your end-user to buy in to it.
Just wanna share that I have resolved my problem not using one type of visualization, but through using 3 different visualizations in Power BI. I used:
1 Table visual for Date column
1 Table visual for Total column
1 Matrix visual for the Code+Type mapping and counts
I also used DAX function to get the Date format and another DAX function used for both Total and Code+Type counts(to filter data according to the specified date).
Thanks for the response, #Murray and #RADO.
In power bi how many values a slicer and hierarchy slicer visual can hold.Recently in one of the dashboard i used a hierarchy slicer for one field , where field contains 169k distinct values. Problem is slicer is not show all values and performance wise it is slow
Thanks,
B
Assuming you're talking about this visual: "Hierarchy Slicer" from App Source
https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104380820?mktcmpid=Pickitli&tab=Overview
Understand that 'number of rows/items' is rarely a specified limit in PowerBI. The limiting factor is the memory of the machine running the report. At some point, things just slow down past usability.
I have the following scenario.
I have two fact tables [FactA and FactB]. FactA and FactB contains 9 common dimensions and their own measures. I am trying to pull the measures from both fact tables into a table visualization and trying to filter the results using common dimensions. It works for the measure pulled from one fact table and not for the other fact table. I tried to set the cross filter direction to both on all the relationships between common dimensions and facts. I was able to set the cross filter for one dimension table, when I am trying to set the same for remaining dimensions, I am getting an warning that Power BI desktop allows only one filtering path between tables in a data model.
Also I tried to see if the cross filtering is working fine for the one dimension that I enabled cross filtering by pulling that dimension key and measures from both facts. But it didn't change anything.
Is there a way I can pull measures from both facts and have it filtered by common dimension values? Please share your thoughts and suggestion. Thanks in advance.
I have joined all the dimension tables to both fact tables. All dimension tables have 1 to many relationships with Fact tables. I have hidden all the dimension columns in report view for both fact tables. I just have measures visible on both Facts. In the visualization tab, I have pulled the measures from fact tables and dimension columns from dimension tables. It fixed the issue.
Also I learnt that, you can derive a new measure using other measures available in different fact tables.