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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
joc
Helper I
Helper I

Graph with conditions

Hello everybody,

 

I need your help again for a new problem.

I would like display the data where WEEK_NUM is the highter for the 2 last years (in yellow) . I don't know how do to that.

My table :

tableau.jpg

 

 

And I would like this type of graph :

graphique.jpg

Thanks in advance for the help,

Joc

 

1 ACCEPTED SOLUTION
Back2Basics
Helper IV
Helper IV

I have managed to replicate the graph you are after, but it isn't filtered on the top WEEK_NUM for each year. It is based only on the VALUE - the maximum for each month. So if the top WEEK_NUM means the VALUE is also at it's higest this will work for you:

 

cluster column chart with the values as 'Max of VALUE' and a slicer based on the YEAR. You can select one year or more than one by using Crtl + select

 

Capture.JPG

View solution in original post

2 REPLIES 2
Back2Basics
Helper IV
Helper IV

I have managed to replicate the graph you are after, but it isn't filtered on the top WEEK_NUM for each year. It is based only on the VALUE - the maximum for each month. So if the top WEEK_NUM means the VALUE is also at it's higest this will work for you:

 

cluster column chart with the values as 'Max of VALUE' and a slicer based on the YEAR. You can select one year or more than one by using Crtl + select

 

Capture.JPG

Thank you, it's working like that !

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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