cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hh849
New Member

Aggregating month data from two SharePoint lists

Hi, new to Power BI here - apologies for my lack of knowledge. I am generating a report using two separate SharePoint 2013 lists, which deal with three different categories of documents (1 on the first list and 2 on the second). Each document type has a separate "Month" column in its list, denoting the month of the year that an individual document was sent. I have also created a measure which calculates the percentage of documents that were sent on time (number of documents sent on time/total number of documents sent).

 

When I plot this sent on time measure for one document type against the appropriate "Month" metric (and sort the Month by a MonthNumber column to get them to appear in the correct order), I get the following bar chart:

 

hh849_0-1660905811259.png

 

This works fine, but if I try to introduce another document type's sent on time measure to the same bar chart, I get the following:

 

hh849_1-1660906299346.png

 

For the second document type (in blue), only the overall percentage for all time is shown in each month. This is despite bringing in the other "Month" metric for B-type documents in as an axis. I presume this is because the "Month" data comes from two separate columns on two separate lists and so cannot be treated "as one"and/or you can only have one X axis on a bar chart. Is there a way to aggregate (not sure if that's the correct term) the Month data so I can achieve a bar chart which something that looks like this (created in Excel):

 

hh849_3-1660906708097.png

1 REPLY 1
ToddChitt
Solution Sage
Solution Sage

You may need to get the two datasets combined (UNIONed) into one, then you can play with the Legend attribute of column and bar charts. 

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.