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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

HELP report graphic filtering

Hello community. I have a Date table. And I have a couple of tables like this:

Datepostslikesshares
3/05/2018201005
18/05/2017101058
3/05/2018251109
28/04/20181011110
15/04/20171511515
22/02/20182212020
1/02/2017231008

 

I'm trying to make a bar graphic that can filter by months and then each bar represents a year. Like this (sorry for the  quality of graphic):

 

IMG-7292.jpg

 

Pleas help. I've been trying but can only do a graphic with the months JAN trough DIC of 2016, then JAN through DIC of 2017 and so on. Really need to make look like that picutre.

 

Thanks in advance

1 ACCEPTED SOLUTION
SteveCampbell
Memorable Member
Memorable Member

I think your drawing is lovely.

 

Do you have a YEAR and MONTH in your date table? If not make one with YEAR = Year([Date]) and MONTH = Month([Date])

Choose a "clustered column chart" and put MONTH in the axis, and YEAR in the legend, and whatever you want in the value.



Did I answer your question? Mark my post as a solution! Proud to be a Super User!


Connect with me!
Stay up to date on  
Read my blogs on  



View solution in original post

6 REPLIES 6
SteveCampbell
Memorable Member
Memorable Member

I think your drawing is lovely.

 

Do you have a YEAR and MONTH in your date table? If not make one with YEAR = Year([Date]) and MONTH = Month([Date])

Choose a "clustered column chart" and put MONTH in the axis, and YEAR in the legend, and whatever you want in the value.



Did I answer your question? Mark my post as a solution! Proud to be a Super User!


Connect with me!
Stay up to date on  
Read my blogs on  



Anonymous
Not applicable

Thank you! It did work. I have a followup question though. 

 

If I have a table like this:

 

testttt.jpg

 

How could I make it so that it appears 2016 march next to 2017 march next to 2018 march next to 2016 april next to 2017 april next to 2018 april.. and so on. Kinda like this (I did it with paint so I can show you :v)

 

testttttt.jpg

Thanks in advance!

Is this "2016 March" etc a hierarchy or new column you created? If you click on a column, you can go to the "Modeling" Tab and use "Sort by Column". You may need to create a sort column or use a datekey - You will need one unique value for each value.

 

I am assuming you have a month and year column you have concatenated. If so, you can create a column:

Sort Column = 

[Month] + 
divide ( [Year], 10000)

 

Then click on your concatenated column, go to modeling, sort by column > "Sort Column"



Did I answer your question? Mark my post as a solution! Proud to be a Super User!


Connect with me!
Stay up to date on  
Read my blogs on  



Anonymous
Not applicable

Thanks for the quick response.

 

My "2016 March" etc is a hierarchy and is sorted as a Date Hierarchy

I have a column called "Date" with data like this: tuesday, 1 december of 2009 (in spanish though).

 

So i have created a column 

Sort Column = 

[Month] + 
divide ( [Year], 10000)

And have sorted my column "Date" > "Sort Column" but the clustered column chart hasn't changed. 

 

Please help

 

Thank you

Anonymous
Not applicable

Got it! I made a column that looked like this: dic 2009 so I used that new column in the axis instead of the Date Hierarchy. Then sorted it by month of the year and that did it.

 

Thanks again for all the help

In this case, the EASIEST way is probably to do this:

 

Create

 

Month = 
Month([Date])

Drag this into tooltips of your graph, then in the elipse (Three dots) in the top right of your graph, click and say "Sort By Month". You can click on the AZ symbol to reverse the order.

 

 



Did I answer your question? Mark my post as a solution! Proud to be a Super User!


Connect with me!
Stay up to date on  
Read my blogs on  



Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors