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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
DataGeo
Helper I
Helper I

Combination chart showing average rather than actual data values with combined dates

I've got 2 different excel sheets of data within the same time period, but one table is simply by year while the other has specific days within these years. Different date formats basically.

 

I am trying to show this data grouped by year, but want to overlay a line showing the more granular detail of its data set, however it's only showing up as a straight averaged line rather than its actualy values.


What I have:

 

 have chart.PNG

 

What I want overlaid

 

 

 

want chart.PNG

 

Example of the two data tables:

 

table1.PNGTable 2.PNG

 

I have related them by the date columns but this doesn't seem to have worked.

2 ACCEPTED SOLUTIONS

Hi,

 

Share the link from where i can download your workbook.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

Hi,

 

You may download my solution from here.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

11 REPLIES 11
Ashish_Mathur
Super User
Super User

Hi,

 

What do the stack in the column chart represent?  What does the line depict?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish,

 

The stacked bars represent the donation amounts from the table, the line should represent the price in the other table. In the shown visualization of the combination the line is 'summed' and only showing a single value over the date range.

Hi,

 

Share the link from where i can download your workbook.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi,

 

You may download my solution from here.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish, 

 

Really appreciate your help with this. I am trying to recreate your solution with my original workbook so I can learn the techniques here. I have been able to follow most of the DAX coding but am stuck now on one step. It seems you created a new "Date" column on the donation table to match the date format of the calendar table.


However when I use the code in your PowerBI file it is giving me an error, see image:

 

pic.PNG

Any idea what I'm doing wrong here? So close!!

Hi,

 

You are welcome.  Ensure that the year column is a numeric column.  If it still does not help, then share the download link of the file with your formulas.  I will try to identify and correct for the error.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish,

 

I tried changing the column to a date column exactly like how it is in your solution but could not get rid of this error. I don't understand why in your solution it works but in mine it is always giving an error.

 

You will see it in the data table titled "Donations". 

 

Thanks again for your help with this.

 

Here is the file: https://drive.google.com/open?id=1y1MQ7qbbpy2ja0q2lXE9rg0wGxlpKE5O

Hi,

 

That is happening because there are blanks in the Year column of the donations table.  Fill in those blank cells.  Else, you may also try this calculated column formula

 

=if(ISBLANK(Donations[Year]),DATE(2013,1,1),1*("1/1/"&Donations[Year]))

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Yes! That's it. Wow the error is not very descriptive in telling you about the blank columns. Thanks so much for all your help Ashish you're the best!

You are welcome.  Glad to help.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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