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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
sztapme
New Member

Creating column chart with Calendar overlay

Hi PowerBI developers,

 

I am working on a project where I show site visit performance on column chart segmented by groups.

On this barchart sometimes due to data error certain months are filtered out, but shown as blank (eg. June, July).

 

As we would like to see the impact of certain promotions and new product lunches on the site visit above the barchart I'm showing promotions/portfolio changes using now GANTT chart. 

My issue is that the months are not aligned with the barchart and the custom visual (Gantt chart xviz) doesn't let me to adjust it. Another issue is when the date slicer is used it won't be aligned even if I could somehow perfectly adjust it for some date.

 

See sample screenshot below:

cluster+gantt_sample.png

 

What would you recommend for this problem? A different visual should be used?

I really appreciate sharing your suggestions.

 

Thank you

2 REPLIES 2
amitchandak
Super User
Super User

Thank you @amitchandak 

 

I'm afraid this visual is not a solution to my problem. On the column chart the #of visits are monthly averages coming from table (each month has 1 value for every group market with different colors) while the Portfolio with new product could be a different date when new product was launched.

 

For promotions there is a promotion start date and promotion end date and these are shown as bars --> easier to see the duration of the promotion.

 

For the promotion and Portfolio there's a subcategory and within the subcategory then the name of the promotion/portfolio. 

Structure of the tables are rather simple:

For cluster barchart:

DateGroupGroup_prevMonthVisitor
2022.02       1 450,000
2022.02       2 320,000
2022.02       1               2500,000
2022.02       2               1270,000

- Date (format: yyyy-mm)

- Group (INT, ex: 1,2,3,...,7)

- Group_prevMonth (INT, ex: 1,2,3,...,7)

- visitors (INT, ex: 518,000)

 

For Promotions GANTT chart:

Type     Subtype     StartDate       EndDate                    Name
Portfolio      Brand1     2022.02.15        null     New product release 1
Promotion      Facebook     2022.02.01    2022.03.15                FB paid ad

 

- Type: (text: promotion, portfolio)

- Subtype: (text: Brand1, Brand2, Facbook, Youtube, ...)

- Start Date: (Date: yyyy-mm-dd)

- End Date: (Date: NULL for portfolio, for promotion yyyy-mm-dd)

- Name: (text: new product1, promotion1,...)

cluster+gantt_sample2.png

 

Hope this helps

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.