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.
Explaining using an example. This is for DirectQuery. Issue doesn't persist when using Import. The issue is how DirectQuery handles DateTime, but this does not apply to Date.
Table 1. Both in model + visual. On the "One" side of One-to-Many:
Column 1(PK)= ID
Column 2= Sum
Column 3= DateTime
Table 2. Both in model + visual. On the "Many" side of One-to-Many:
Column 1(FK)= ID
Column 2=info from table
Filtering on Table 1 does not correctly crossfilter on Table 2. However, when removing DateTime(Column 3) the crossfiltering works. There should be no reason for this to happen.
My solution to this was....interesting. By removing DateTime and replacing it with a Text Calculated Column that appeared to be DateTime, the visual worked.
Replaced DateTime(column 4) with the following:
Sketchy Workaround Calculated Column =
RIGHT("0" & MONTH(Table1[DateTime Column]),2) & "/" & RIGHT("0" & DAY(Table1[DateTime Column]),2) & "/" & YEAR(Table1[DateTime Column]) & " " & RIGHT("0" & HOUR(Table1[DateTime Column]),2) & ":" & RIGHT("0" & MINUTE(Table1[DateTime Column]),2) & ":" &RIGHT("0" & SECOND(Table1[DateTime Column]),2)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.