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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
msommerf
Helper III
Helper III

Bar & Line Chart for fixed Year

Hi,

 

I am looking to create a Bar & Line chart displaying Sales This Year against Sales Last Year as bars with a line displaying sales for a fixed year of 2016.

 

I can easily get sales this year and last year but how do i create a measure that will always display 2016 data for my line?

 

Any help appreciated.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Sales_2016 = CALCULATE(sales,FILTER(Table;Table[date].[Year]=2016))
Assuming your date has a hierarchy, did you try something like that ?
Create a new measure similar to the old one and add a filter to it (replace sales with your formula)

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Sales_2016 = CALCULATE(sales,FILTER(Table;Table[date].[Year]=2016))
Assuming your date has a hierarchy, did you try something like that ?
Create a new measure similar to the old one and add a filter to it (replace sales with your formula)

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.