Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I have a table,
and the % Meta column is totaling incorrect. The correct thing would be
The measure is defined below
I need the total to be correct whith the totals as well. Line by line is already correct.
Thanks in advance.
Solved! Go to Solution.
Hi @Anonymous ,
It is suggested to use HASONEVALUE.
You may try to create a measure to replace the TOTAL value.
%Meta=
IF(HASONEVALUE('Dados'[Classificacao]),[% Valores de Meta],[Resultado column sum divided by Meta column sum])
The HASONEVALUE is to perform a calculation in the row of the matrix to get the result1, and perform another calculation in the Total row to get the result2.
I can’t understand the language in your picture. If there is an error, please understand.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The issue was resolved with this link Solved: Re: Divide with error in total - Measure - Microsoft Power BI Community
The issue was resolved with this link Solved: Re: Divide with error in total - Measure - Microsoft Power BI Community
Hi @Anonymous ,
Could you tell me if your problem has been solved?
If it is, kindly Accept it as the solution. More people will benefit from it.
Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.
Best Regards,
Stephen Tao
Hi @Anonymous ,
It is suggested to use HASONEVALUE.
You may try to create a measure to replace the TOTAL value.
%Meta=
IF(HASONEVALUE('Dados'[Classificacao]),[% Valores de Meta],[Resultado column sum divided by Meta column sum])
The HASONEVALUE is to perform a calculation in the row of the matrix to get the result1, and perform another calculation in the Total row to get the result2.
I can’t understand the language in your picture. If there is an error, please understand.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
For the Meta column, here are the details.
The Resultado column has the natural data of the base.
I need to divide the result column by Meta, with that Meta I only need one record, because they are all repeated.
There are no more measures involved.
Can you provide the DAX for all the measures you're using? Maybe a little sample data to cut and paste as well?
@Anonymous , Try AverageX in place of SUMX and check
The field for MIN is the same on all lines.
Below is the result.
It's calculating the MIN value across the entire table and using that as the denominator.
Instead try SUMX( TableName, MIN([FieldName]))
Thanks for the reply. When I do this it happens
It's aggregating the percentages because you used SUMX in defining it. Your measure should simply be DIVIDE([Numerator], [Denominator], BLANK() )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
97 | |
82 | |
74 | |
66 |
User | Count |
---|---|
120 | |
105 | |
99 | |
81 | |
72 |