Forum Discussion
LastNonBlank formula help
- 7 years ago
Hi pokdbz,
I'm afraid you can't find the last status with that formula. Please refer to lastnonblank-function-dax.
LastStatusText =
LASTNONBLANK ( 'StoreTasks'[Status],
'StoreTasks'[Status] IN { "Completed" } // it returns true or false, which never be a blank.
)Let's take the Store 0002 and the role Bakery as an example, the last status always "Completed". What should it be?
If you are sure you did it in the right way, please try this formula to get the result.
Measure = SUMX ( SUMMARIZE ( StoreTasks, StoreTasks[Role], [StoreNumber], "Status", [LastStatusText] ), IF ( [Status] = "Completed", 1, 0 ) )
Best Regards,
Hi pokdbz,
Can you share your file, please? Please mask the sensitive parts first.
It's good. Please refer to the snapshot below.
Best Regards,
- v-jiascu-msft7 years agoMicrosoft Employee
Hi pokdbz,
I'm afraid you can't find the last status with that formula. Please refer to lastnonblank-function-dax.
LastStatusText =
LASTNONBLANK ( 'StoreTasks'[Status],
'StoreTasks'[Status] IN { "Completed" } // it returns true or false, which never be a blank.
)Let's take the Store 0002 and the role Bakery as an example, the last status always "Completed". What should it be?
If you are sure you did it in the right way, please try this formula to get the result.
Measure = SUMX ( SUMMARIZE ( StoreTasks, StoreTasks[Role], [StoreNumber], "Status", [LastStatusText] ), IF ( [Status] = "Completed", 1, 0 ) )
Best Regards,
- v-jiascu-msft7 years agoMicrosoft Employee
Hi pokdbz,
You can upload it to the cloud drive like OneDrive then share the download link here. Please mask the sensitive parts first.
Best Regards,
- pokdbz7 years agoHelper II
- pokdbz7 years agoHelper II