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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
MickyG
Frequent Visitor

Average only counting distinct values

How much would you charge to adjust 1 measure in a table matrix? Here is the table. The column I’m having issues with is “County Cases per 100k” (pic 1).

 

MickyG_0-1632945844321.png

 

 

The measure that calculates this column is “per100kWeekend” (pic 1.1). It returns the value of the “countyper100k” measure that is equal to the Weekend date column.

 

Pic1.1..jpg

 

Pic 2 shows the "Countyper100k" measure. It summarizes the county data table.

MickyG_2-1632945927058.png

 

Pic 3 shows the "County COVID Data" table. The column I need is the "cases_avg_per_100k".

 

Pic 3.jpg

 

The problem I'm having...if you compare the first screenshot to Pic 4...when the regions are expanded. If you calculate the values they should average to 43.25 but when it is collapsed it shows 54. I'm guessing it is only averaging distinct values. How can I fix this? 

 

 

MickyG_1-1632945885726.png

 

 

Table Structure below.

 

image.png

2 REPLIES 2
Icey
Community Support
Community Support

Hi @MickyG ,

 

Power BI won't calculate the total vaule based on the single values above. In other words, when the regions are expanded, the value of "Austin" isn't calculated based on the values of "Bluff Springs", "Health Professions", and etc.. It is calculated based on the overall max date of "Austin".

 

For Bluff Springs, per100kWeekend calculate [countyper100k] based on the max date of Bluff Springs.

 

For Austin, per100kWeekend calculate [countyper100k] based on the max date of Austin.

 

If I have not made it clear, please tell me your doubts.

 

Here is an example: Measure Totals, The Final Word - Microsoft Power BI Community

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Please provide sanitized sample data in usable format (not as a picture - inserting it into a table would be good) and show the expected outcome.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors