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 two tables that I am trying to create a relationship to. One is my key table used as a reference table for the date. I want the date to span multiple years (this example shows 2017 through 2018).
My other table shows my incident numbers and the date which it was created on.
I have tried creating a 1 to many relationship between the date column and the opened at column. For some reason my slicer will not work. Both columns are formated as the data type Date.
Solved! Go to Solution.
Hi @adamsumm,
In date table, create a [Year Month] column like this:
Year Month = DateTable[date_year]&" "&DateTable[date_num]
Also, in incident table, create a [Year Month] column:
Year_Month = YEAR(Incidenttable[Open at]) & " " & MONTH(Incidenttable[Open at])
Please remove the original relationship, re-create a one to many relationship based on [Year Month].
Result
Best regards,
Yuliana Gu
Hi @adamsumm,
In date table, create a [Year Month] column like this:
Year Month = DateTable[date_year]&" "&DateTable[date_num]
Also, in incident table, create a [Year Month] column:
Year_Month = YEAR(Incidenttable[Open at]) & " " & MONTH(Incidenttable[Open at])
Please remove the original relationship, re-create a one to many relationship based on [Year Month].
Result
Best regards,
Yuliana Gu
Check in Query Editor if these are originally coming in as DATE-TIME data values.
For some reason, changing the data type from DateTime to Date sometimes won't properly truncate.
Instead, go to the Transform tab in the Ribbon.
Date & Time Column section
Click Date
Date Only.
That will properly truncate the date.
Let us know if this works!
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 |
---|---|
107 | |
93 | |
77 | |
65 | |
53 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |