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

Wrong average in DAX

Hi everyone,

 

Can anyone help me to get the right average of the measure "Score actuel"  in the total of page 3? I get 72 instead of 64.

 

Here is the pbix file : https://www.dropbox.com/s/vdb1mzcnfurnpbe/Sample%20eco%20score.pbix?dl=0

 

Thank you

Best regards

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Anonymous ,

 

Using the IF statement on calculations for the matrix/table can bring incorrect totals just a dd the following measure:

 

Score Average = AVERAGEX(VALUES('Fact table'[URL]), Mesures[Eco Score]) + 0

Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

4 REPLIES 4
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

Could you please tell me whether your problem has been solved?

If yes, you could accept the helpful answer as solution to close this thread.

Other community members will easily find the solution when they get the same issue.

 

Best Regards,
Community Support Team _ Eason

MFelix
Super User
Super User

Hi @Anonymous ,

 

Using the IF statement on calculations for the matrix/table can bring incorrect totals just a dd the following measure:

 

Score Average = AVERAGEX(VALUES('Fact table'[URL]), Mesures[Eco Score]) + 0

Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

Hello,

 

I realized that this formula doesn't take into account my drill-through filter. For example on page 1 when I right click on "FNAC" and drill-through "Details" the measure is calculated for all the URLs and not only for the URL of FNAC.

Is there any way I can change the measure to keep the filter from my drill-through?

 

Thank you,

 

Best regards

Anonymous
Not applicable

Thank you MFelix, it worked! 🙂

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.

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.