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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
req77
Helper I
Helper I

Chart that shows all months of the current year and the average for previous years

Hello,

I have a table with this structure:

Year_Month      Type                Value      Objective    
2022.12Production57
2023.01Production1012
2023.02Production1513
2022.12Compliance88
2023.01Compliance46
2023.02Compliance1112

 

It is possible to create a chart that, for the current year, shows the bars with values ​​for each month, and for previous years, it shows an average of each year, similar to the figure below?
print_pergunta.PNG

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @req77 

It's possible, but not easy.
Quite a few manipulations are required in PQ.

My sample file is attached as a link.

Follow the steps there, if you don't succeed, let me know and I'll make you a video of everything.

link to sample file 

picture of the result (the file is with data for 2 years )

Ritaf1983_0-1685166414943.png

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

1 REPLY 1
Ritaf1983
Super User
Super User

Hi @req77 

It's possible, but not easy.
Quite a few manipulations are required in PQ.

My sample file is attached as a link.

Follow the steps there, if you don't succeed, let me know and I'll make you a video of everything.

link to sample file 

picture of the result (the file is with data for 2 years )

Ritaf1983_0-1685166414943.png

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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