Forum Discussion
Shared Axis on two similar data
in order to simplify the problem i have two table
The table one and table two have similar field namely tahun
i want to compare between nilai and nilai2 on similar Tahun. so i created a shared axis on Tahun. I choose one of the Tahun and display it on a chart. as you can see on this picture the Nilai shows correct value but the NIlai2 is not. and if i select both tahun on same shared axis the result is still like that
Is there anyway to make Nilai2 shows correct result
Hi raidenrey,
First, you need a calendar table and add a calculated column [Year].
dim date = CALENDAR(DATE(2012,1,1),DATE(2014,12,31))
Year = YEAR('dim date'[Date])Based on this date table, create a new table which contains only one column showing a year list.
Year table = VALUES('dim date'[Year])Create relationships between tables like below:
Add corresponding fields to chart visual.
Best regards,
Yuliana Gu
4 Replies
- ketan10
Advocate III
Hi raidenrey
You could carry out the following steps:
1. Click on New Table under the Modeling tab
2. Create a table name: CalendarTable = CALENDARAUTO(). This would give you a new unique date column ( You will have to convert that date column to "Year" ) in CalendarTable3. Go to the Relationships tab and create a one-to-many relationship between the CalendarTable and other two tables using the unique Date column under CalendarTable
Hope this helps.
Regards,
Ketan ! - v-yulgu-msft
Microsoft Employee
Hi raidenrey,
First, you need a calendar table and add a calculated column [Year].
dim date = CALENDAR(DATE(2012,1,1),DATE(2014,12,31))
Year = YEAR('dim date'[Date])Based on this date table, create a new table which contains only one column showing a year list.
Year table = VALUES('dim date'[Year])Create relationships between tables like below:
Add corresponding fields to chart visual.
Best regards,
Yuliana Gu- AlfonsZIeglerNew Member
Hi ketan10 and v-yulgu-msft
this is a well working solution for this two independent tables.
What is the solution if the two tables are already connected to each other with relationships, i.e. circular relationships would arise with this new table?
Best regards,
Alfons
- v-yulgu-msft
Microsoft Employee
Hi raidenrey,
Have you worked it out? If so, would you please mark the helpful reply as an answer so that it can benefit more users? If you still have any question, please feel free to ask.
Thanks,
Yuliana Gu