Forum Discussion
Issues with First/Last Sorting on Matrix Table Column
I have a Matrix Table Column that seems to be sorting inconsistently for a column of data.
Essentially, I have a column of text that is capturing a number and I need the last number of the sub-rows to show on the master row. The problem I have is that when I set the data for LAST, there are some master rows data points that show the correct data point, but others are not (see first photo).
Conversley, if I change the data to show FIRST, some of the last data points now show in the Master Row (see second photo)
Any suggestions on what may be the issue?
JDartz here is the measure, change the column and table name as per your model, use display value measure in the matrix.
Sum = SUM ( YourTable[YourColumn] ) DIsplay Value = IF ( ISINSCOPE ( 'YourTable'[Date] ), [Sum], LASTNONBLANKVALUE ( 'YourTable'[Date], [Sum] ) )For your reference.
Step 0: I use these DATA below.
Step 1: I Make a Measure and a Matrix below.
M_LastDateValue = CALCULATE(MAX('DATA'[No]),FILTER('DATA','DATA'[Date]=CALCULATE(MAX('DATA'[Date]),ALLEXCEPT('DATA',DATA[Office Name]))))
7 Replies
- mickey64Super User
For your reference.
Step 0: I use these DATA below.
Step 1: I Make a Measure and a Matrix below.
M_LastDateValue = CALCULATE(MAX('DATA'[No]),FILTER('DATA','DATA'[Date]=CALCULATE(MAX('DATA'[Date]),ALLEXCEPT('DATA',DATA[Office Name]))))
- v-echaithraCommunity Support
- v-echaithraCommunity Support
Hi JDartz ,
May I ask if you have resolved this issue? Please let us know if you have any further issues, we are happy to help.
Thank you.