My model has 2 columns: Source System and Target System and I am using the NetworkNavigator custom visual. My goal is to search for a specific system and display all relationships to that system, regardless if it is a source or target in the relationship.
Assume the following 2 records: Source=A Target=B, Source=B Target=C. I would like to search for "B" and see both records (I am using the NetworkNavigator custom visual).
Is there a way to have one filter that searches in both of my columns at once? (I am transitioning from Qlik to PBI. In Qlik this works out of the box)
One way to do this is to make your network table symmetric by taking the union of the table with itself having the source and target switched.
Try creating a New Table (under Modeling tab) using a formula along these lines:
AllNodes = DISTINCT(UNION(SUMMARIZECOLUMNS(Network[Source], Network[Target]),
SUMMARIZECOLUMNS(Network[Target], Network[Source])))
Then build your Network Navigator visual based on that table instead of the original and add a slicer on either column of this table to do your filtering.
Related
Link: https://www.vivran.in/post/understanding-ambiguity-in-power-bi-data-model
In above example why does the Path 2 need to be inactive? Isn't Power BI able to filter the Target table using both the paths?
If I apply DAX USERELATIONSHIP then will Power BI choose only the specified path? And ignore the other path?
Multiple paths aren't allowed because they would make the model difficult to use. If a report writer selects a Manager, would they expect to see the Manager's targets, or the Manager's Customer's targets? Typically one or the other, and as the model designer you must choose which.
Otherwise how would the filter work? Would it be the union of the two sets? The intersection?
And yes USERELATIONSHIP allows you to write measures using an inactive relationship.
I want to implement on PowerBI a calculator that I developed in Excel.
Basically, it works this way:
I have a list of Dates:
I have a Database that combines in a key the name of the source with a date:
I have a calculation table where I apply into a Dropdown menu value an entire column, it combines with the Source, forming a key, where I can calculate the Source variation choosing two dates (an initial and an end date).
I would like to know how can I apply it into Power Bi, specially step 3. With a Dropdown menu that is applied to an entire column "dynamically"
You can do this with Calculation Groups. To use them, you have to use the free external tool Tabular Editor.
Setting dynamic date ranges like this is a very common use for Calculation Groups.
Here's an example of a prior year Calculation Item:
CALCULATE(SELECTEDMEASURE(), SAMEPERIODLASTYEAR(cal[date]))
You can create multiple Calculation Items to define all the various periods you need.
You can then set the calculation group as the field for a dropdown menu, and each calculation item you defined will be an option in the menu.
Here's an intro article. This same website has the best training on calculation groups you can find online. (And it's all free.)
Tableau automatically groups measures together but Power BI Desktop doesn't natively support this. I find it annoying to have to place measures under imported tables as the measures don't really belong to those "parent tables" (and quite often take input from multiple tables — which one would you consider the "parent"?)
So I experimented with some workarounds and I'm sharing the successful (as of the date of this post) ones here:
Method 1 (recommended): "Model" view > "Enter data" to enter a manual data table. Give a name like "_Measures_" so it appears on top of tables, and keep only the default dummy column "Column". Create/move measures under it, then right click to delete that "Column". Now you're left with a blank table that groups those measures under it.
Method 2: "Data" view > "New table" to create a DAX calculated table. Rest the same as above, except that for a DAX calculated table you can't delete the dummy column but instead you can hide it.
You can also "Enter data" using Power Query Editor but I don't recommend going with that extra step -- workarounds are supposed to be quick (and dirty) anyways!
Final results look like this (note the difference of the icons):
When I work in Power BI Desktop connected to SQL Analysis Services, my model looks like this,
Enter image description here
And the "Fields" tab on the right spans for more than a page long:
Enter image description here
In reality I actually use only a few tables and a few columns in those tables + my measures.
To simplify that look, I can go to ellipses near each tables title, and hide that particular table. I also can do this on "model" tab, but in my case, when I have a few dozens of tables, it is time consuming.
Is there a way how to "hide" all not used tables and columns, to help report consumers to comprehend the model and my calculations?
You can also easily hide multiple fields in Power BI Desktop. The best place to do that is to go into the Model tab. Then select all fields that you want to hide (using Ctrl or Shift with selection), and then in the Properties tab beside it, turn the Is Hidden property to On.
In my table primary key column have missing value, i have tried to fill using measure but it is not work because not full fill the primary key val of column to measure
For handling missing values, you need to follow the following two steps:
Replace the missing values with the desired values in Query Editor in Power BI Desktop (optional)
Remove the bi-directional relationships and create uni-directional relationships among tables
Note: The direction of the relationship plays a very important role in modeling in Power BI. The direction of the relationship means the way that filter propagates in Power BI. The uni-directional relationship will filter one table based on the other one. Sometimes you need to filter in a different direction, that is when the bi-directional relationship comes into play. However, bidirectional relationship comes with a cost of performance issues. Do not use bi-directional relationships blindly. Make sure you have designed your model in the right way first, and if that doesn’t work, then try other methods such as Cross-Filter DAX functions.
I have created static table as blow and create relationship with original tables then assigned value static table column on visual table which is working with out any issue
Create Static stable:
create relationship
assign column to visual table and filter result column should not be empty