Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello-
I have been emersed in Power Bi for a few months now and an certainly still new at this. I have a table visual where each column is represented by a measure. I am working with multiple tables: Budget, DateKey, Road Service Activity and Road Service Clearing Codes; all with many to one relationships with cross filter direction set to both except the Budget Table is single direction one to many connected to the Date table. The two road service tables house all data elements related to each road service event. Each event is designated by its own row so I am working with almost a million rows in those tables ( hundreds of events each day). My budget table has a monthly cost and call volume figure which I have tried to allocate over each day each month. The amounts vary month to month. I have turned off the total row and am trying to use card visuals under some of the important columns to show MTD, QTD And YTD figures. As you can see I have not added in QTD yet. The MTD cards seems to be accurate for all cards. When switching to the QTD and YTD cards only some of the cards are accurate. The cards that are accurate are not varience cards, they have formulas like this:
If these two measures do not work correctly, then it means something is wrong with your model.
[Total Vol YTD] =
calculate(
[Total Vol], -- or any measure
datesytd( DateKey[Date] )
)
[Total Vol QTD] =
calculate(
[Total Vol], -- or any measure
datesqtd( DateKey[Date] )
)
By the way... Bi-directional filtering should be enabled between tables only when the consequences of doing so are fully understood by the modeler. This kind of filtering is dangerous and can produce incorrect numbers when least expected and the modeler will not be even aware of this. So, please learn all there is to learn about this way of filtering and when it's needed. 95% of the time only one-way filtering from dimension to the fact table is needed and correct.
Best
D
Hello and thank you for your response. I miss spoke. The relationships are all one to one, not one to many. I will change the filter direction to single based on your input. I believe that Power BI automatically selected that filter direction and relationship for me, I will adjust this. I am sure it is possble that the model has an issue as you pointed out. I will test those measures again and if there is an issue I will rebuild.
Much thanks.
I will be doing much reading on this to get smarter. THank you for pointing this out.
Hello-
Thank you for your reply again and patience here. I understand star and snowflake schema, certianly not as much as you do I imagine. I have one main fact table with four dimention tables. All relationships are many to one. I just recently brought another dimention in and it looks like the relationship is 1:1 which as you stated would be an issue. I am going to change that relationship and see if I have any better luck. Thanks again for sharing your knowledge.
Ryan
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
49 | |
26 | |
21 | |
16 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |