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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
power_bi_123456
Frequent Visitor

Values Between Start and End Date Gantt Chart

I am trying to create a Gantt Chart type visual to show media spend for each campaign/brand. My table has start date, end date, campaign name, media spend. I also have a relationship through the start and end date to another date table. I want to use a matrix table to visualize spend for each campaign on a timeline view. My matrix table has campaign name, brand name in the rows and date year, date quarter, date month on the columns. I would like to know how to distribute spend across dates specifically by month.

 

Please let me know how to do this or any alternatives to create this visualization. I know there are gantt chart apps you can download but I would like to create this custom. Thanks.

3 REPLIES 3
DataNinja777
Super User
Super User

Hi power_bi_123456,

 

In my opinion, a gantt chart showing the duration of the campaigns horizontally cannot express the amount of the spending at the same time vertically, in two dimentional visual of horizontal and vertical gridlines of matrix while at the same time showing the campaign names on rows.  You maybe able to do that using the gantt chart custom visual which enables to show the names of the campaigns inside the gantt lines while at the same time, showing the amount in the vertical height and the durations using the horizontal lengths. In using the matrix table to express the duration as you required, I would write a measure like below:

Sakiko_0-1693179341963.png

Then, put that on the Values field of the Visualizations pane.  Then I used the conditional formatting on the measure value to make it blue colored.  

Sakiko_1-1693179500386.png

 

 I right clicked the Values field measure name, "Campaign duration" to set this conditional fomatting like below:

Sakiko_3-1693180371277.png

I am afraid that the resulting gantt chart using the matrix visual is not as professinoal looking like the custom visual one as it cannot express the names of the campaigns inside the gantt chart lines, and also, I couldn't put the gap between the gantt lines.  

 

Alternatively, you can try to express the campaign spending amount using the color conditional formatting instead of vertical height in the two dimentional matrix visualization.

I've tweaked the measure a bit to show the amount of "Media spend" instead of the number "1". 

Sakiko_4-1693181317829.png

 

Then I put the color conditional formatting.  

Sakiko_5-1693181399739.png

Similar to before, I used the right clicking of the measure name [Campaign duration] in the values field of the Visualization pane to get to the screen below for the conditional formatting.

 

Sakiko_6-1693181455468.png

 

If you would like, I can share the pbix file I prepared for this task.

Hi Sakiko, yes! Do you mind sharing the pbix file? I think this could work for our needs. 

Hi @power_bi_123456,

 

Here is the link to the file on OneDrive.  

https://1drv.ms/u/s!AlqFfzVTqicpnV61lAqntI4s6kyr?e=LjwaBZ

Please let me know if you have any issue accessing it.  

Oh, one more thing... I didn't mention the important thing previously pertaining to this data model that the calendar table is a disconnected table in this data model. There should be no relationship between the fact table and the calender table (dimension table) for this data model to work properly.  

 

Sakiko_0-1693255512964.png

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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