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
Anonymous
Not applicable

Having trouble merging rows of data

I have a data set that contains customfield values and I need 2 specific ones for my report. Ideally i wouold like the report to be Key Code, SOW STage , Billing Amount with the data below. I have gotten it to this pioint but cannot get the data to be on the same row....

morgancarlson_0-1654632393157.png

morgancarlson_1-1654632417638.png

SOW Stage = IF(customfieldvalue[STRINGVALUE]= "13601", "Development Completed",IF(customfieldvalue[STRINGVALUE]="13600","Development Started", IF(customfieldvalue[STRINGVALUE]="10505", "Project Declined", IF(customfieldvalue[STRINGVALUE]="10504","SOW Signed",IF(customfieldvalue[STRINGVALUE]="10503","SOW Sent", IF(customfieldvalue[STRINGVALUE]="10502","SOW WIP", IF(customfieldvalue[STRINGVALUE]="10501","Ballpark Approval",IF(customfieldvalue[STRINGVALUE]="10500","Ballpark Requested",""))))))))
 
 
Key Code = lookupvalue(jiraissue[key_code],jiraissue[ID],customfieldvalue[ISSUE])
 
 
Any ideas?
 

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

I simply simulated some data that I hope fits your situation. You can try the following method.

Re-export SOW Stage with measure:

SOW =
IF (
    SELECTEDVALUE ( customfieldvalue[SOW Stage] ) <> BLANK (),
    SELECTEDVALUE ( customfieldvalue[SOW Stage] ),
    CALCULATE (
        MAX ( customfieldvalue[SOW Stage] ),
        FILTER (
            ALL ( customfieldvalue ),
            [Key Code] = SELECTEDVALUE ( customfieldvalue[Key Code] )
        )
    )
)

vzhangti_1-1655104892922.pngvzhangti_0-1655104866791.png

Is this the output you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

I simply simulated some data that I hope fits your situation. You can try the following method.

Re-export SOW Stage with measure:

SOW =
IF (
    SELECTEDVALUE ( customfieldvalue[SOW Stage] ) <> BLANK (),
    SELECTEDVALUE ( customfieldvalue[SOW Stage] ),
    CALCULATE (
        MAX ( customfieldvalue[SOW Stage] ),
        FILTER (
            ALL ( customfieldvalue ),
            [Key Code] = SELECTEDVALUE ( customfieldvalue[Key Code] )
        )
    )
)

vzhangti_1-1655104892922.pngvzhangti_0-1655104866791.png

Is this the output you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thank you so much that worked! Now I have a follow up querstion im trying to get it into a matrix to look like the photo attached...

 

I cannot make SOW the columns because it is a measure - is there a work around for this?

morgancarlson_0-1655907525971.png

 

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.