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 a dashboard created in Power BI Desktop and I am trying to filter by year for dates coming from date columns coming intwo separate tables.
E.g. I have a table for internal services and a table for external services and each service has a related date and metrics. I want to be able to slice my report based on year from both tables. I tried to build a relationship between these columns but get the error:
"You can't create a relationship between these two columns because one of the columns must have unique values."
How do I:
(a) Build a realtionship between these columns, or
(b) Merge the two columns into a 3rd separate date table column that will let me slice for my report?
Solved! Go to Solution.
In this scenario, you can create a calendar table as @Vvelarde mentioned. And you can also add a service type column for each table and then merge these two tables. Please refer to following steps.
In this scenario, you can create a calendar table as @Vvelarde mentioned. And you can also add a service type column for each table and then merge these two tables. Please refer to following steps.
hi @cm0215
You need a calendar table.
You can create quickly with New Table - Calendar("InitDate";"FinalDate") Example: Calendar("01/01/2016"; "31/03/2016")
Then you make the relationship with this table and your date columns
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 |
---|---|
109 | |
96 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |