Forum Discussion
How to display previous data for null values in column charts?
Sent by you:
- Anonymous1 year ago
Hi, anusha_madhavan
Based on your information, I create a sample table:
Then create new measures, try the following DAX:
LastNonBlankEnabledRepos = CALCULATE( LASTNONBLANK('Table'[EnabledRepos], CALCULATE(SUM('Table'[EnabledRepos]))), FILTER( ALL('Table'), 'Table'[CalendarDate] <= MAX('Table'[CalendarDate]) ) )LastNonBlankNotEnabledRepos = CALCULATE( LASTNONBLANK('Table'[NotEnabledRepos], CALCULATE(SUM('Table'[NotEnabledRepos]))), FILTER( ALL('Table'), 'Table'[CalendarDate] <= MAX('Table'[CalendarDate]) ) )Here is my preview:
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 Replies
- Ritaf1983
Super User
Hi anusha_madhavan
Please refer to the linked video:
https://www.youtube.com/watch?v=qo_omRxgLSYIf my answer was helpful please give me a Kudos and accept as a Solution.
- AnonymousNot applicable
Hi, anusha_madhavan
Based on your information, I create a sample table:
Then create new measures, try the following DAX:
LastNonBlankEnabledRepos = CALCULATE( LASTNONBLANK('Table'[EnabledRepos], CALCULATE(SUM('Table'[EnabledRepos]))), FILTER( ALL('Table'), 'Table'[CalendarDate] <= MAX('Table'[CalendarDate]) ) )LastNonBlankNotEnabledRepos = CALCULATE( LASTNONBLANK('Table'[NotEnabledRepos], CALCULATE(SUM('Table'[NotEnabledRepos]))), FILTER( ALL('Table'), 'Table'[CalendarDate] <= MAX('Table'[CalendarDate]) ) )Here is my preview:
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.