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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors