Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
asebes
Frequent Visitor

Matrix with Blank Values

My raw data doesn't always have values for every month.  So when displaying in a matrix format i'm getting "blank" data for months that are missing.  How can i build my measure so that if the data is blank for a given month it pulls in the value from the last month with a value.  For example Jun-21 is blank but i need to go back to Apr-21 to get a number.  

 

Thanks in advance for the help!

 

asebes_0-1617223508159.png

 

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@asebes 

Assuming you have a date table the measure would be along these lines

Measure = 
VAR _Date = MAX('Dates'[Date])
RETURN
    CALCULATE(
        LASTNONBLANKVALUE( Dates[Date], SUM ( 'Table'[Amount] ) )
        ,Dates[Date] <= _Date
    )

jdbuchanan71_0-1617225498673.png

 

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

See if my solution here helps - Show Balance outstanding everyday even if data for everyday is not available.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
jdbuchanan71
Super User
Super User

@asebes 

Assuming you have a date table the measure would be along these lines

Measure = 
VAR _Date = MAX('Dates'[Date])
RETURN
    CALCULATE(
        LASTNONBLANKVALUE( Dates[Date], SUM ( 'Table'[Amount] ) )
        ,Dates[Date] <= _Date
    )

jdbuchanan71_0-1617225498673.png

 

works great!  thx for the help!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.