Forum Discussion
Need help with the dax
- 3 years ago
Add the Request ID field to the visual and you will see why the values are "different "
Can you change the last two measures in the image to the SUMX measures and post the screenshot?
Also, which table is the Sales Rep field in the visual coming from and which field are you using in the SUMX measures?
PaulDBrown, i didn't follow, where are you asking me to use sumx.Are they for these measures:-
- PaulDBrown3 years ago
Community Champion
The measures you have posted are to then calculate the correct totals using SUMX:
Correct return = SUMX(fTable, [CORRECT Return Temp])Late return = SUMX(fTable, [LATE Return Temp])and finally
% Late returns = IF ( ISINSCOPE ( fTable[Sales Rep] ), BLANK (), DIVIDE ( [Late return], [Correct return] + [Late return] ) )If you have a Sales Rep Dimension table, you should be using it in the visual (it's more efficient). If so, you need to reference this dimension table in the SUMX measures.
- Avivek3 years ago
Post Partisan
PaulDBrown, this is exactly how we did, sales rep is the created name from the same table Case Order Fact, all the columns in measure are from same table. So am I missing something?
Why is it then not giving the right value?
- PaulDBrown3 years ago
Community Champion
Can you post a depiction of the visual with the Correct Return and Late return measures?
It would really help if you could provide a link to a sample PBIX file (you can change any confidential information). It's hard to see the problem otherwise. (since in my test it works...)