Forum Discussion
Difference between 2 columns in a Matrix Table - DAX Help ASAP
- 9 years ago
Hi all,
In case anyone has a similar issue. there is a pretty simple fix. Instead of Using Month.No I should have used [Date].[Date] in all of the formulas.
I apologies for wasting all of your time on this.
Thanks,
Boycie92
Hi Anonymous
Thanks for the reply.
I have used your solution and I have encountered a problem:
- When comparing later months with each other I am encountering an issue were Departments that are no longer in use show the first headcount (April) figure available.
For example:
Department 1
MinMonthHC = April 2016 MaxMonthHC = September 2016 Diff
200 200 0
When it should be
MinMonthHC = April 2016 MaxMonthHC = September 2016 Diff
200 0 -200
However it works fine in months when the Department are still active.
It could be the way I have altered the measures? If you have any suggestions I would greatly appreciate it.
Thanks,
Hi Boycie92,
Could you share a sample pbix file which can reproduce the issue in this case? So that we can help to investigate this issue. You can upload it to OneDrive or Dropbox and post the link here or just send me the link in private message. Do mask sensitive data before uploading.:smileyhappy:
Regards
- Boycie929 years agoResolver I
Hi v-ljerr-msft
Please accept my apologies for the delay.
I have created a sample file and data set for you.
You can see that when you compare Department 1 from September to December it shows the same figure?
However in actual fact December should have 0 Values?
Thanks again for your time and patience.
https://www.dropbox.com/s/6qqdg5ea02ivtce/New%20Compressed%20(zipped)%20Folder.zip?dl=0- Boycie929 years agoResolver I
Hi v-ljerr-msft
I was wondering if you have had the time to look at the issues I am having?
Thanks,
Boycie92
- v-ljerr-msft9 years agoMicrosoft Employee
Hi Boycie92,
I am the one to apologise. Sorry for the delay response.
I did spend a lot time looking into your shared pbix file. Then I found the issue may relate to the previous logic of your measures which are a little complex for me to understand. After a few try, I was still not able to fix your issue. :smileymad:
Regards