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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
ktkpatra
Frequent Visitor

Year Month Comparision Clustered Column Chart in Power BI

Dear Uesrs,

Could you please guide me how to create 2 or 3 year data with Month comparison as per graph below.

Do I need DAX or any other option can do it. please help.  

 

ktkpatra_0-1667745506259.png

 

2 REPLIES 2
Evan_Power_Bi
Frequent Visitor

Whatever your date hiearchy field is, take the "year" and put that in the "Legend" of the visual and put "month" in the "x-axis" of a clustered column chart.

v-yueyunzh-msft
Community Support
Community Support

Hi , @ktkpatra 

Can you explain what is " 2 or 3 year data with Month comparison as per graph below"?

In your cisual , it shows the "2021-2022" Month comparsion, and what is you really want ?

If you want to make a slicer , you can refer to :
Generate Year and Month Combinations in Power BI Report using DAX - RADACAD

 

Best Regards,

Aniya Zhang

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

Helpful resources

Announcements
Europe Fabric Conference

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.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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