cancel
Showing results for
Did you mean:
Highlighted
New Member

## 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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Microsoft

## Re: Shared Axis on two similar data

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

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 REPLIES 3
Highlighted
Resolver I

## Re: Shared Axis on two similar data

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 CalendarTable

3.  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 !

Highlighted
Microsoft

## Re: Shared Axis on two similar data

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

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Microsoft

## Re: Shared Axis on two similar data

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

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Announcements

#### Power Platform Community Conference

Check out the on demand sessions that are available now!

#### Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

#### Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors