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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
swapnareddy
New Member

HOW DO I ACHIEVE BELOW OUTPUT IMAGE USING DAX? MY INPUT AND OUTPUT IMAGES ARE DISPLAYED BELOW.

swapnareddy_0-1645721343736.png

 

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @swapnareddy ,

According to your description, here's my solution.

vkalyjmsft_0-1646122766691.png

Table 2 = 
UNION (
    SUMMARIZE ( 'Table', 'Table'[Column2], 'Table'[Column3], 'Table'[Column1] ),
    ADDCOLUMNS (
        SUMMARIZE ( 'Table', [Column2], [Column3] ),
        "Column1",
            CONCATENATEX (
                FILTER (
                    ALL ( 'Table' ),
                    'Table'[Column2] = EARLIER ( 'Table'[Column2] )
                        && 'Table'[Column3] = EARLIER ( 'Table'[Column3] )
                ),
                [Column1]
            )
    )
)

Get the result.

vkalyjmsft_1-1646123038708.png

In this way, rows are not in the same order as expected. Or you can just create a measure.

Column1' =
CONCATENATEX (
    FILTER (
        ALL ( 'Table' ),
        'Table'[Column2] = MAX ( 'Table'[Column2] )
            && 'Table'[Column3] = MAX ( 'Table'[Column3] )
    ),
    [Column1]
)

Put two visuals together.

vkalyjmsft_2-1646123626131.png

I attach the sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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-yanjiang-msft
Community Support
Community Support

Hi @swapnareddy ,

According to your description, here's my solution.

vkalyjmsft_0-1646122766691.png

Table 2 = 
UNION (
    SUMMARIZE ( 'Table', 'Table'[Column2], 'Table'[Column3], 'Table'[Column1] ),
    ADDCOLUMNS (
        SUMMARIZE ( 'Table', [Column2], [Column3] ),
        "Column1",
            CONCATENATEX (
                FILTER (
                    ALL ( 'Table' ),
                    'Table'[Column2] = EARLIER ( 'Table'[Column2] )
                        && 'Table'[Column3] = EARLIER ( 'Table'[Column3] )
                ),
                [Column1]
            )
    )
)

Get the result.

vkalyjmsft_1-1646123038708.png

In this way, rows are not in the same order as expected. Or you can just create a measure.

Column1' =
CONCATENATEX (
    FILTER (
        ALL ( 'Table' ),
        'Table'[Column2] = MAX ( 'Table'[Column2] )
            && 'Table'[Column3] = MAX ( 'Table'[Column3] )
    ),
    [Column1]
)

Put two visuals together.

vkalyjmsft_2-1646123626131.png

I attach the sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

 

 

amitchandak
Super User
Super User

@swapnareddy , New table

Union( summarize(Table, [Column2],[colum1], [column1]),

summarize(Table, [Column2],[colum3], "column3", concatenatex(Table, [Column1]))

)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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