The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi all,
Hope someone can help me out with my question.
The average I get when calculating with dax is different then calculation in excel pivot table (see picture below).
I understand how the calculation is different, but I can't get it work, to get both calculations the same.
Can anybody help me out ?
Regards,
Yvonne
Solved! Go to Solution.
Hi , @Yvonne24
According to your description, you want to change the calculation on the %OK in Matrix.
Here are the steps you can refer to :
(1)This is my test data:
(2)We can create four measures to compare:
If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi , @Yvonne24
According to your description, you want to change the calculation on the %OK in Matrix.
Here are the steps you can refer to :
(1)This is my test data:
(2)We can create four measures to compare:
If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Wow this is amazing!
Been working on this for a long time.
Thank you very much!!!!
Yvonne
The difference in the average calculation between Power BI and Excel could be due to several factors. Here are a few possibilities:
The data source: Are you using the same data source in both Power BI and Excel? If not, there may be differences in the data that are affecting the average calculation.
The calculation method: Power BI uses the DAX language to calculate measures, while Excel uses its own calculation engine. There may be differences in how the averages are calculated.
Filtering: Are you applying any filters in Power BI that are not being applied in Excel? This can affect the average calculation.
The data type of the field: Make sure that the data type of the field is the same in both Power BI and Excel. Also, check that the field is not formatted in a way that could affect the average calculation.
Missing values: If there are missing values in the dataset, the way how it is handled can cause a difference in the average calculation.
In order to resolve this issue, you can try to use the same data source and calculation method in both Power BI and Excel and ensure that the data type of the field and filtering are the same. Also, you can check for missing values and if exist try to filter them out or if not possible to handle them in a way that works for your analysis.
Hi, Thank you for your reply.
I use the same data as I extract the data from the PowerBi table (report) into excel. So therefor the same filtering is present and no missing values. The calculation methode is indeed different. But I do not know how to create a DAX that gives the same result as the pivot table (or visa versa).
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
112 | |
79 | |
77 | |
47 | |
38 |
User | Count |
---|---|
148 | |
116 | |
65 | |
64 | |
54 |