The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Dear all,
I have problem regrading relationships between tables and filters.
I have 3 tables Data Table, OneToOneCalendar Table, OneToManyCalendar Table.
Relationship between tables is as follows:
I have created following measures in my Data Table.
OneToOneLast6th'smonthData = CALCULATE(SUM(Data[Data]),DATESINPERIOD(OneToOneCalendar[Date],EDATE(MAX(OneToOneCalendar[Date]),-5),5,MONTH))
OneToManyLast6th'smonthData = CALCULATE(SUM(Data[Data]),DATESINPERIOD(OneToManyCalendar[Date],EDATE(MAX(OneToManyCalendar[Date]),-5),5,MONTH))
I have created following visuals using above measures.
Can anyone please explain me why I am getting 2 different results for same data using different relationships?
Pbix File :Relationship_Issue.pbix
Solved! Go to Solution.
Hi@ say-t
First ,when you create relationship for two table, you need to pay attention to Cross filter direction.
For example, if Cross filter direction is single then formula “MAX(OneToManyCalendar[Date])” in your measure will be a fixed value.
Second, DATESINPERIOD function is Time Intelligence Functions, you should not drag filed monthYear into Axis. You should drag filed in table OneToOneCalendar/ OneToManyCalendar.
Best Regards,
Lin
Hi@ say-t
First ,when you create relationship for two table, you need to pay attention to Cross filter direction.
For example, if Cross filter direction is single then formula “MAX(OneToManyCalendar[Date])” in your measure will be a fixed value.
Second, DATESINPERIOD function is Time Intelligence Functions, you should not drag filed monthYear into Axis. You should drag filed in table OneToOneCalendar/ OneToManyCalendar.
Best Regards,
Lin
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
79 | |
77 | |
46 | |
39 |
User | Count |
---|---|
143 | |
113 | |
64 | |
63 | |
53 |