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
rreck
Frequent Visitor

Sum up all vlaues in line and stacked column chart

Hi all,

 

I am working on a dashboard and have the following problem:

We are controlling our colleagues by their sales. One colleague did not have any sales for product C in January. So far so bad. But as there were no data entries for that product in January, Power BI does also not include the targets for that certain product in its calculations.

 

Example

Sales by colleague: 

 JanuaryFebruaryMarchApril
Product A10303020
Product B15555
Product C0555

 

Targets for colleague:

 JanuaryFebruaryMarchApril
Product A20304010
Product B10203020
Product C10101010

 

Now, Power BI sums up the target for January to 30 (= 20 (A, Jan) + 10 (B, Jan)) and not 40 because there were no sales in January for Product C.

I am using a line and stacked column chart and also am working with a third table that displays products A, B and C which I am using to filter the content.

 

Any help how to calculate the correct sum?

 

Thanks in advance 🙂

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

There should also be a Year column in both tables or along with the month, there should also be the year.  Share the 2 revised tables.


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

Sounds like your data model is missing a "Colleagues"  dimension table.

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.