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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.