Forum Discussion
Measure total incorrect
- 6 years ago
What I mean was the calculation is done on eth measures which are not visible in the example. (It became -- the same)
I think I still need more information to help. But if the problem is that you are doing an operation which has two levels of operations. Sum till one place and product post that values can help
Try
if( HASONEFILTER(time_entries[Equipment Name (from Gsheet)]), [Dias Operativos Measure] * [Arriendo diario], sumx(values(time_entries[Equipment]), [Dias Operativos Measure] * [Arriendo diario])) sumx(values(time_entries[Equipment]), [Dias Operativos Measure] * [Arriendo diario])
Thank you very much for your super-quick response amitchandak !
I am not sure I understand what you mean by "using measures that are not visible in the same".
I think your solution is working, because "Name Days" and "Daily" are columns. In my case they are measures whose home table is "time_entries". Sorry that I was not clear enough in the first place.
"Days" is a measure that counts days of a filtered period (e.g. 01.01.2019 to 05.01.2019 = 4 days)
"Daily Rent" is a measure that uses a column value (=Monthly Rent) and divides it by the number of days the month in the filter has (in the example above: 31 days in January).
Unfortunately, I cannot share the PBI file as it is connected to a clients database. I hope you can still help me out.
What I mean was the calculation is done on eth measures which are not visible in the example. (It became -- the same)
I think I still need more information to help. But if the problem is that you are doing an operation which has two levels of operations. Sum till one place and product post that values can help
Try
if(
HASONEFILTER(time_entries[Equipment Name (from Gsheet)]),
[Dias Operativos Measure] * [Arriendo diario],
sumx(values(time_entries[Equipment]),
[Dias Operativos Measure] * [Arriendo diario]))
sumx(values(time_entries[Equipment]),
[Dias Operativos Measure] * [Arriendo diario])