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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

empty row required if scorecard ddint availble in source data.

Hi Team,

I have EmployeeScore 1 to 5 if Employeescore didnt availble in the table i need one row emty

below my data

Employee ScoreNameCompanySalDestination
3AAA23IT
3BAA45SOFT
2CAA45TE
4DAA77RS
4FAA88IT

 

My outputshould  below table

Note:My Employeescorecard is 1 to 5 if didnt avaible its add empty row of this table

1 and 5 didnt have employee score its should be add each row like below output

Employee ScoreNameCompanySalDestination
3AAA23IT
3BAA45SOFT
2CAA45TE
4DAA77RS
4FAA88IT
1    
2    

 

based my daily  have all EmployeeScore (or)   one or morethan 1 missing in sourcedata.

empty row should be dynamic based source data

 

Thanks

Shanvitha

 

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try this:

FullOuterJoin =
SUMMARIZE (
    UNION (
        VAR ALeftOuterJoinB =
            NATURALLEFTOUTERJOIN ( 'Table', RELATEDTABLE ( 'Employee Score' ) )
        RETURN
            SELECTCOLUMNS (
                ALeftOuterJoinB,
                "Employee Score", 'Table'[Employee Score],
                "Name", 'Table'[Name],
                "Company", 'Table'[Company],
                "Sal", 'Table'[Sal],
                "Destination", 'Table'[Destination],
                "Employee Score_", 'Employee Score'[Value]
            ),
        VAR AUniqueDateLevel =
            DISTINCT ( 'Table'[Employee Score] )
        RETURN
            SELECTCOLUMNS (
                CALCULATETABLE (
                    'Employee Score',
                    NOT ( 'Employee Score'[Value] IN AUniqueDateLevel )
                ),
                "Employee Score_", 'Employee Score'[Value],
                "Name", "",
                "Company", "",
                "Sal", "",
                "Destination", "",
                "Employee Score_2", 'Employee Score'[Value]
            )
    ),
    [Employee Score],
    [Name],
    [Company],
    [Sal],
    [Destination]
)

empty.JPG

 

 

Best Regards,

Icey

 

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

1 REPLY 1
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try this:

FullOuterJoin =
SUMMARIZE (
    UNION (
        VAR ALeftOuterJoinB =
            NATURALLEFTOUTERJOIN ( 'Table', RELATEDTABLE ( 'Employee Score' ) )
        RETURN
            SELECTCOLUMNS (
                ALeftOuterJoinB,
                "Employee Score", 'Table'[Employee Score],
                "Name", 'Table'[Name],
                "Company", 'Table'[Company],
                "Sal", 'Table'[Sal],
                "Destination", 'Table'[Destination],
                "Employee Score_", 'Employee Score'[Value]
            ),
        VAR AUniqueDateLevel =
            DISTINCT ( 'Table'[Employee Score] )
        RETURN
            SELECTCOLUMNS (
                CALCULATETABLE (
                    'Employee Score',
                    NOT ( 'Employee Score'[Value] IN AUniqueDateLevel )
                ),
                "Employee Score_", 'Employee Score'[Value],
                "Name", "",
                "Company", "",
                "Sal", "",
                "Destination", "",
                "Employee Score_2", 'Employee Score'[Value]
            )
    ),
    [Employee Score],
    [Name],
    [Company],
    [Sal],
    [Destination]
)

empty.JPG

 

 

Best Regards,

Icey

 

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

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 Kudoed Authors