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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
alks_skla_f
Helper II
Helper II

Count Average based on values from table visual

Hello, 
I have a table visual, which is filtered by using different options. The first filter is set on the right bar, where I filter "Status" and "New Value". The next filter is set in "Columns" section, where I filter First Closed Date by using Earliest keyword (case can be opened several times, I need to know only first closed date).

alks_skla_f_0-1763550596990.png

 

I have a measure "First Resolution Date Business Hours". My task is to count average for this measure.
To count average I am using this measure: 

measure_AverageFirstResolutionDateHours = 
    DIVIDE(
        -- returns sum of values in measure FirstResolutionHours
        SUMX(
            cps_sfdc_cases_history,
            [measure_FirstResolutionHours_Optimized]
        ),
        COUNTROWS(
            FILTER(
                cps_sfdc_cases_history,
                NOT(ISBLANK([measure_FirstResolutionHours_Optimized]))
            )
        ),
        0 -- Default value if the denominator is 0
    )

After I decided to filter table in order to have a small sample which helps me check if average is correct. I am getting incorrect average. The answer is 2.06, but should be 2.12:

alks_skla_f_1-1763550597539.png

 

The question is how I can count average of measure First Resolution Date Business Hours based on table visual, not table itself?
I applied the same filters on data card as on table visual, but still doesn't work properly

6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Praful_Potphode
Solution Sage
Solution Sage

Hi @alks_skla_f ,

 

If the issue is not resolved,please provide clear snapshot of input/output.

 

Thanks and Regards,

Praful

 

v-priyankata
Community Support
Community Support

Hi @alks_skla_f 

Thank you for reaching out to the Microsoft Fabric Forum Community.

@amitchandak @ryan_mayu Thanks for the inputs

I hope the information provided was helpful. If you still have questions, please share the pbix file & don't hesitate to reach out to the community.

 

Hi @alks_skla_f 

Hope everything’s going smoothly on your end. I wanted to check if the issue got sorted. if you have any other issues please reach community.

ryan_mayu
Super User
Super User

@alks_skla_f 

not sure if this issue is fixed or not. I can't see the screenshot clearly. If the issue is still existing, could you pls share the pbix file?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




amitchandak
Super User
Super User

@alks_skla_f , Try with AverageX, seem like last time I used SUmx 

Averagex (summarize (cps_sfdc_cases_history, cps_sfdc_cases_history[Case Numer], cps_sfdc_cases_history[CraetedDate], cps_sfdc_cases_history[End Date]) , [measure_AverageFirstResolutionDateHours])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.