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
Applicable88
Impactful Individual
Impactful Individual

Ignore blank values in averagex measure

Hello,

 

I have a simple AverageX Measure 

Measure = Averagex ( Table1, Table1[Value] / related Table2(Positions))I don't have values for all dates, so in this cells it will display infinite, and if I put that measure into a table it wil show "infinite" as well. Its like having a complete sales table1 but not a related "position" value for all sales.

Only if I use the filter panel and filter out all dates without value I get a Average Value. Since these days contain other important information in other columns I cannot filter them out in the visual. So is it possible to calculate the average and ignoring the blank fields?

Thank you very much in advance.

Best

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Applicable88 , You try like

Averagex ( Table1, divide(Table1[Value] , related (Table2(Positions)) )

 

or

 

divide(sum(Table1[Value] ), sumx(Table1, related (Table2(Positions))))

or


divide(sum(Table1[Value] ), sum(Table2(Positions)))

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Applicable88 , You try like

Averagex ( Table1, divide(Table1[Value] , related (Table2(Positions)) )

 

or

 

divide(sum(Table1[Value] ), sumx(Table1, related (Table2(Positions))))

or


divide(sum(Table1[Value] ), sum(Table2(Positions)))

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.