Forum Discussion
measure dax %
- Anonymous2 years ago
Hi Jhophshepht
To make the total correct, you may create a new measure:
Measure = AVERAGEX(VALUES('Table'[Número de documento]),[IRA Value])[IRA Value] is the old measure:
IRA Value = MAX('Table'[IRA])The "incorrect total" behavior is common in table/matrix visuals in Power BI, you can refer to the following blogs about how to deal with it. This occurs because Power BI intends to calculate the total based on rows of underlying data instead of the rows displayed in the visual.
Why Power BI totals might seem inaccurate - SQLBI
Obtaining accurate totals in DAX - SQLBI
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!
Hi Jhophshepht
Not sure if I understand it correctly. If your table is similar to below, you can create a simple measure with MAX to get the distinct IRA value for each Número de documento on each date.
IRA Value = MAX('Table'[IRA])
If this is not what you want, can you provide some dummy data and expected result to show what you want to accomplish?
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!
- Jhophshepht2 years agoFrequent Visitor
Gracias por la respuesta, estoy cerca. me da la informacion que necesito, pero el total de la columna no es el correcto, deberia ser 89.10%
- Jhophshepht2 years agoFrequent Visitor
Si uso la funcion Average, me da el promedio de toda la columna, pero tampoco es el correcto, me da 83.52%
- Anonymous2 years agoNot applicable
Hi Jhophshepht
To make the total correct, you may create a new measure:
Measure = AVERAGEX(VALUES('Table'[Número de documento]),[IRA Value])[IRA Value] is the old measure:
IRA Value = MAX('Table'[IRA])The "incorrect total" behavior is common in table/matrix visuals in Power BI, you can refer to the following blogs about how to deal with it. This occurs because Power BI intends to calculate the total based on rows of underlying data instead of the rows displayed in the visual.
Why Power BI totals might seem inaccurate - SQLBI
Obtaining accurate totals in DAX - SQLBI
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!