Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
theBIA
Frequent Visitor

Year by Year Visualisation

Hi All,

 

I am trying to generate a visual which will show 2018 and 2019 data side by side.

 

The data is sourced from the same matrix, however the BI functionality appear to only allow for the year to be sliced or a report level filter.

 

Please advise how I could work around this ?

 

Regards

2 ACCEPTED SOLUTIONS
v-cherch-msft
Employee
Employee

Hi @theBIA 

You may try to use below two ways.

First way,create two measures to get different years' sales.

 

Sale 2018 = CALCULATE(SUM(Table1[sales]),YEAR(Table1[date])=2018)
Sale 2019 = CALCULATE(SUM(Table1[sales]),YEAR(Table1[date])=2019)

Second way,use matrix visual and drag year to column as below.

1.png

Regards,

 

Community Support Team _ Cherie Chen
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

Hi @theBIA 

Yes,the first way would work for your scenario.You may create a calendar table and link it with your tables.

Regards,

Community Support Team _ Cherie Chen
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
v-cherch-msft
Employee
Employee

Hi @theBIA 

You may try to use below two ways.

First way,create two measures to get different years' sales.

 

Sale 2018 = CALCULATE(SUM(Table1[sales]),YEAR(Table1[date])=2018)
Sale 2019 = CALCULATE(SUM(Table1[sales]),YEAR(Table1[date])=2019)

Second way,use matrix visual and drag year to column as below.

1.png

Regards,

 

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

Hi,

 

So my data is contained in a single report, thus will the first solution work if it is referencing the same table but for different dates ?

 

Essentially I am trying to see a Value on the Y axis, with a month by month comparison of 2018 and 2019 data side by side on the X axis

Hi @theBIA 

Yes,the first way would work for your scenario.You may create a calendar table and link it with your tables.

Regards,

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

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.