sumtotal
2 TopicsMeasure that divides a value from another table, with a sum from another table
Hello, I have a problem which I'm having problems getting my head around, which I am hoping for any inputs on. I have two tables. One date table with available hours for a given month, and another table containing "executed hours" for a given month per employee and performed task. See examples below. Executed hours Date table Wanted output The wanted output is a table that show the number of full time employees for a given month. If any employee has worked over the avaible hours for a respective month it rounded down to 1, whilst if exected hours is below available hours I want the fraction (as shown for employee 2 in januar). I have managed all the numbers right, apart from the totals (totalsum) which still eludes. Hopefully this makes sense. Thank you for your time!Solved850Views0likes2CommentsSumtotal Currency Conversion Problem
Hi, I am doing a currency conversion with a double lookup that matches on both currency and time. This works fine for the individual rows in the table, however, the sumtotal is wrong. I found that one has to treat sumtotals separately, and that HASONEVALUE() is a good function to ensure this. The problem is what DAX formula to use for the sumtotal, marked as "?" in the formula below. I have tried several different methods using SUMX(), but I haven't been able to solve it. Also, I have scoured the web for tutorials and solutions but all currency conversion tutorials seem to have the same issue. Help would be greatly appreciated! Note that there is also a filtering here between currency selection "NOK" and "Local Currency". Curr_adj_value = SWITCH(TRUE(); [Currency selection]="NOK";IF(HASONEVALUE('CapEX Documents'[Budget]);SUM('CapEX Documents'[Budget])*LOOKUPVALUE('Currencies'[NOK per unit];'Currencies'[Currency];MAX('CapEX Documents'[Currency]);'Currencies'[Year];YEAR(MAX('CapEX Documents'[Scheduled start])));"?"); [Currency selection]="Local Currency"; SUM('CapEX Documents'[Budget]))Solved3.1KViews0likes5Comments