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

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

Reply
Soizle
New Member

Combine 2 rows data to make 1 row in 2 columns without pivot

Hi,

Here is my data :

NamePhaseStatuts

Extract 2D plans

APSHigh
Extract 2D plansEXEMedium
Extract 2D plansLIVLow

Other Function

APSMedium
Other FunctionEXELow
Other FunctionLIVHigh

 

And I want to have this :

NameAPSEXELIV
Extract 2D plansHighMediumLow
Other FunctionMediumLowHigh

 

I want to do this on PowerBI, without using Power Query (because I have a lot of operations done in Power BI before)

 

This is for making a Sankey diagram : Source APS and Destination EXE then Source EXE and Destination LIV

 

If there is any others solutions (differents data agency or methods), I'm in !

 

Thanks

 

1 ACCEPTED SOLUTION

Hi @Soizle,

 

You can try measure as:

 

Measure = 
CALCULATE(
    MAX('Table'[Statuts]),
    FILTER(
        'Table',
        'Table'[Phase]=MAX('Table'[Phase])
    )
)

 

And drop fields to matrix.

vxulinmstf_0-1626744052970.png

The pbix is attached.

 

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

View solution in original post

6 REPLIES 6
v-xulin-mstf
Community Support
Community Support

Hi @Soizle

 

You can create measures as:

APS = 
CALCULATE(
    MAX('Table'[Statuts]),
    FILTER(
        'Table',
        'Table'[Phase]="APS"
)
)
EXE = 
CALCULATE(
    MAX('Table'[Statuts]),
    FILTER(
        'Table',
        'Table'[Phase]="EXE"
)
)
LIV = 
CALCULATE(
    MAX('Table'[Statuts]),
    FILTER(
        'Table',
        'Table'[Phase]="LIV"
)
)

Here is the output:

vxulinmstf_0-1626677238094.png

The pbix is attached.

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

Hi and thanks.

In fact I'm looking for doing this in only one automated request beacause I have several types. Is that possible ?

Hi @Soizle,

 

You can try measure as:

 

Measure = 
CALCULATE(
    MAX('Table'[Statuts]),
    FILTER(
        'Table',
        'Table'[Phase]=MAX('Table'[Phase])
    )
)

 

And drop fields to matrix.

vxulinmstf_0-1626744052970.png

The pbix is attached.

 

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

Anonymous
Not applicable

Hi @v-xulin-mstf 

Is it possible to convert this mesure into a table?

I tried with CALCULATETABLE but the parameters are not correct

Thanks

Hi @Anonymous,

 

Table does not support your expectations under the conditions of using a query.

I'm not clear your issue, could you provide more details?

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

Anonymous
Not applicable

@v-xulin-mstf actually I would like to do the same thing that was presented by @Soizle but I need to see the data as a table because the diagram I want to use does not accept mesure in the axis

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.