Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
So I am sure what I am trying to do has been done before. I am half way there and feel like I am just missing a small piece. I am graphing revenue and hours on the same tab but the data is coming from different datasets. My filters for the date are working because they both are using the calendar date parameters on their respective other tabs for CY and PY calculations. However, I also have filters for Company, region and yard. For those they are using the fields from their own datasets on their own tabs, but I do have a hierarchy table. When I join each of the respective tables company code to the company code in the hierarchy only one them is a solid line, and the other is a dotted line. When I go back to the tab, only the data set with the solid line adjusts with the company filter. What am I doing wrong? One of the reasons I am not using the hierarchy for filters on the tabs is that sometimes yards move regions and company's and then historically they in two locations and I end up with errors.
Hello,
I believe you should create support filter tables to make the filtering easy and simple to use. You may refer to the following video:
https://www.youtube.com/watch?v=ZrANsDNnZug
Thanks,
Vivek
So this works 2/3 of the way. I have to join 3 tables to my Company and Yard tables and for each of them it will not let me join them and make it active because it says there is a link between the company or yard table and the calendar table and there is no link between them for me to remove to make it work. I am at a loss.
Hi @reh169 ,
USERELATIONSHIP should help you in your scenario by creating inactive relationship between tables. Please refer to this case.
https://community.powerbi.com/t5/Desktop/USERELATIONSHIP-issue/td-p/478744
If it doesn't meet your requirement, kindly share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.
But I am not trying to do a calculation I am trying to have filters work for 3 different data sets. I do not see how this resolves my issue.
Is it possible for you to share the sample data file or snapshot of the relationship view?
Regards,
Vivek
Not sure if this will help. So I have 3 data sets on one page. I have two them working, the third one it will not let me create another many to many relationship. So my Jobs and Utilization tables are working and joined to the calendar table and the company and yard table. This enable both to filter correctly. My budget and revenue table it will not let me join to the company, yard or calendar table. As you can see I have added another calendar table but it is only letting me make one join there. Does this help?
BTW, looking at the screenshot of your model, I think you are confused about how relationships, lookup tables, and filter conexts work. Just as an example, it is VERY rare to have more than one relationship between two tables (generally you only need more than one relationship between two tables if for example your fact table has two date fields - for example, purchase date and delivery date).
And it seems you have two or three stemming from one table to another in a few tables.
Proud to be a Super User!
Paul on Linkedin.
So I cleaned everything up and now it is letting me make the joins and everything is working as it should on my combined tab. Which is great. I have one last issue that is not working as expected. I have my Invoice Created date and I have linked that in a many to one relationship with the date field in my calendar table. It is active. I have made the Year and Month columns has my slicers on my tab, but whenever I select them all of my data goes blank. I went and reformatted the date so that it was no longer date time just the date, I have removed the link and added it back but nothing is working. I really am at a loss.
So here is the dax I am using for my Calucations for current and prior year.
So that result is when I have the Year and Month filters from the Calendar table as my slicers. I have it that way on my other tabs so that my prior year calucation will work. However, using them on this tab only seems to result in no data at all even with the tables being joined. This is what the data looks like when I use the actual inv created date from the days to invoice all table.
Proud to be a Super User!
Paul on Linkedin.
My other issue is that I am trying create Current Year and Prior Year calculations. To do that I am having to link my date, to the date table which is many to one, then my slicers are year and month and sometimes quarter and those end up being many to many and after a bit it will not let me add anymore. Can you think of away around that? I am all ears. Thank you!
Proud to be a Super User!
Paul on Linkedin.
So you are saying I do not have to link the date, year, month and quarter fields from the data table to the calendar, just the date and it will work?
My company table looks like this, EWS, RMSC, INF, SCR, and ACR. All my data tables have some or all of those. My yard table is a list of cities where we have yards. Again the data tables have some or all of the yards depending on the data.
Does this answer your questions?
Proud to be a Super User!
Paul on Linkedin.
Ok I tried that and it seems to work for 2 tables and then the next two tables that I join based on date it doesnt work. I have a total of 4 tables linked in a many to one relationship with the calendar table and only 2 of them work. The other two when I select date fields everything goes blank.
The fields in question are all columns from my queries. Each query represents a different data set. One is about jobs, one is about utilization, one is comparing budget and revenue. All of them have Company and Yard columns, as well as Month and year date columns. All of the tabs that they have on their own have filters for Company and Yard as well as date fitlers. I have been requested to make an executive tab that combines graphs from all 3 tabs. I created the Yard and Company tables as a distinct list of the companies and yard and it works for 2 of the 3. Something with having more than 2 tables joined in a many to one relationship. Not sure but I am so ready to bang my head on the wall.
@reh169
I know it’s a pain but it would be very helpful to have a sample of the fact tables you need to work with. Otherwise it is a bit of a shot in the dark.
If you are getting blanks, it can be for a number of reasons, including the fact that your lookup tables do not include all possible values from your fact tables, depending on what fields you are using in visuals etc... I can create a mock-up, but if the issue is what I’ve just explained, it will be of little use.
So... if possible, please provide a sample of the fact tables you need to reference. All of them. Then we can take it step by step.
We need you to help us help you, basically
PS: just so that you might understand my confusion, a few posts back you mention 3 data tables, and more recently you mention 4. Confession: I am lost as to what your basic fact tables are and exactly what fields you are trying to relate. I am happy to help, but I need to understand your scenario. Please provide examples in the form of tables (I'm not concerned about the bridge/lookup tables; I need to understand the data or fact tables you are trying to work with).
Proud to be a Super User!
Paul on Linkedin.
I created a 2 bridge tables, my company and yard tables, that are many to one with just the company and yards listed in the bridge tables, but I need to link 3 tables to them and it will not let me do more than 2. When I try to make the relationship active I get this error. And what makes no sense to me is that the Yardname table and the Calendar table are not linked at all in any way. There is no way to link them.
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
27 |
User | Count |
---|---|
99 | |
91 | |
51 | |
48 | |
47 |