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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
PeterSkl
Regular Visitor

Sum of values vs. Planned Value

Hi, I have one table with made quantities T1C1 for specific category T1C2 in many rows and have another table with planned quantity T2C1 for each specific category T2C2.

T1C1 : T2C2 = N:1

I want to compare the sum of quantities for specific category against the planned quantity like T2C2 - SUM(T1C1). What kind of tool do I need to use in Power BI?  Many thanks!

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @PeterSkl 

 

You can create a measure with below DAX to get the difference between made quantities and planned quantities. Then put Category column from Table2 (Don't summarize), Made Quantity (Sum aggregation), Planned Quantity (Sum aggregation) and this measure into a table visual to view the result. You can also use other visuals per your need. Table visualizations in Power BI reports and dashboards

 

Difference = SUM(Table2[Planned Quantity]) - SUM(Table1[Made Quantity])

 

22010501.jpg

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

1 REPLY 1
v-jingzhang
Community Support
Community Support

Hi @PeterSkl 

 

You can create a measure with below DAX to get the difference between made quantities and planned quantities. Then put Category column from Table2 (Don't summarize), Made Quantity (Sum aggregation), Planned Quantity (Sum aggregation) and this measure into a table visual to view the result. You can also use other visuals per your need. Table visualizations in Power BI reports and dashboards

 

Difference = SUM(Table2[Planned Quantity]) - SUM(Table1[Made Quantity])

 

22010501.jpg

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.