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
Anonymous
Not applicable

Average of filtered table visual

I have written a DAX measure which correctly gets the average of a table, however, now that I have added a visual level filter I need the average to now get the correct average according to what is actually showing on the table currently not what it originally showed without the visual level filter.

 

Current Average = 0.47%

Expected Average = 3.08%

 

Visual Level filter which I added

mdbuzzer15_1-1662722755227.png

Current Output:

mdbuzzer15_0-1662722716311.png

 

 

 

 

 

 

 

 

Expected Output (Checked via Excel):

mdbuzzer15_2-1662722819459.png

 

DAX Code:

AverageRate = 

  AVERAGEX (

        VALUES (d_cam[owner_name]),

         [SASRate]

    )

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I solved the issue by created a calculated table using the SUMMARIZE function then did a DAX measure based on that calculated table

View solution in original post

3 REPLIES 3
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

Thanks for your solution. If the problem has been solved you can mark the reply for the standard answer to help the other members find it more quickly. If not, please point it out.


Looking forward to your feedback.


Best Regards,
Henry

Anonymous
Not applicable

I solved the issue by created a calculated table using the SUMMARIZE function then did a DAX measure based on that calculated table

Surya9
Helper V
Helper V

I am sure there are some other filters applying to the visual. get the dax query of the visual and check 

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.