Forum Discussion

angel51496's avatar
angel51496
Frequent Visitor
1 year ago
Solved

Connect the Gaps

I have a graph in power bi that I can't get these lines to connect. I have created the date table but the line graph still doesn't connect. Essentially I would like to connect the last value that was entered, to be a plateau until the new value. Any advice would be great! These values are based on sourcekeys and obviously the latest adjustment on the value for that date.

 

 

 

 

13 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    angel51496 You can potentially adjust your measure as follows:

    New measure = 
      VAR __Value = [Old Measure]
      VAR __Result = 
        IF(
          __Value <> BLANK(),
          __Value,
            VAR __Year = MAX( 'Dates'[Year] )
            VAR __Month = MAX( 'Dates'[Month )
            VAR __Day = MAX( 'Dates'[Day] )
            VAR __Date = 
              MAXX( 
                FILTER( 
                  ADDCOLUMNS( 
                    FILTER( ALL( 'Dates' ), [Year] = __Year && [Month] = __Month && [Day] < __Day )
                    "__Measure", [Old Measure]
                  ),
                  [__Measure] <> BLANK()
                ),
                [Date]
              )
            VAR __Result = MAXX( FILTER( __Table, [Date] = __Date ), [__Measure] )
          RETURN
            __Result
    RETURN
      __Result
    • angel51496's avatar
      angel51496
      Frequent Visitor

      Greg_Deckler I had to upload it onto onedrive to put a link here. Can you not access that? Otherwise how would I share the file?

      • Greg_Deckler's avatar
        Greg_Deckler
        Community Champion

        No, it is asking me to sign in to like your Azure AD (Entra ID) domain. Custom login screen with logos and stuff. 

  • v-sdhruv's avatar
    v-sdhruv
    Community Support

    Hi angel51496 ,
    Just wanted to check if you got a chance to review the suggestions provided and whether that helped you resolve your query?

    Thank You

  • v-sdhruv's avatar
    v-sdhruv
    Community Support

    Hi angel51496 ,
    Since we didnt hear back, we would be closing this thread.
    If you need any assistance, feel free to reach out by creating a new post.

    Thank you for using Microsoft Community Forum