cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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 

1.jpg



 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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 

 

 

2.jpg

 

 

 

Is there anyway to make Nilai2 shows correct result  

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Microsoft
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:

1.PNG

 

Add corresponding fields to chart visual.

2.PNG

 

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.

View solution in original post

3 REPLIES 3
Highlighted
Resolver I
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
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:

1.PNG

 

Add corresponding fields to chart visual.

2.PNG

 

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.

View solution in original post

Highlighted
Microsoft
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.

Helpful resources

Announcements
Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

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