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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
lcasey
Post Prodigy
Post Prodigy

Calculate overall Average in a table without filtering

Hello,

 

I have two tables with 4 fields,

 

Table 1 (Cases) :    Qty (Gap) and Member

 

Table 2 (Revenue): Sales (Regularization) and Qty (Gap)

 

  • For each member I want to calculate the total Regularization (Sales)  / Total Quantity (Gap) in table 1 giving me an Aerage Revenue per qty 
  • Then I want to multiply table 2   Qty  times the Average sales per qty. 
Average Revenue = CALCULATE(DIVIDE(sum(Revenue[Regularization]),Sum(Revenue[Revenue Gap])),ALLSELECTED(Revenue))

Gap Forecast = [Average Revenue] * sum('Cases'[Case Gap])
 
The problem is when I add a visual that includes The member and qty from table 1 which may be filtered and try to calculate it against the Average Revenue , The Average Revenue calculation also gets filtered and does not provide a valkue per member.
 
Does anyone know why this is happening and have a solution?
 
 
 Thanks!
1 REPLY 1
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @lcasey,

 

Please try this:

Average Revenue = DIVIDE(sum(Revenue[Regularization]),Sum(Revenue[Revenue Gap])) 

 

For more advice, please provide sample data and illustrate the desired result with examples. How to Get Your Question Answered Quickly

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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