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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Matrix with Two subdivisions in single columns

Good evening all, I come to you in need of great aid, I need to make a column divided in 2 subdivisions as it is shown on the image: 

Cstill2_0-1705525517662.png

I should also add that all the different sub-columns are independent measures from one another. Is there any way to obtain these result.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Update: I managed to obtain an acceptable solution, using this line of code:

ACT vs TGT =
CALCULATE (
    SWITCH (
        TRUE (),
        //Excess Actual
        SELECTEDVALUE ( 'ACT vs TGT Structure'[Measure] ) = "Excess"
            && SELECTEDVALUE ( 'ACT vs TGT Structure'[Value] ) = "Actual", FORMAT ( [Excess], "#,0" ),
        //Excess Target
        SELECTEDVALUE ( 'ACT vs TGT Structure'[Measure] ) = "Excess"
            && SELECTEDVALUE ( 'ACT vs TGT Structure'[Value] ) = "Target", FORMAT ( [Excess %], "#%" ),
           
        //Risk Mitigation Actual
        SELECTEDVALUE ( 'ACT vs TGT Structure'[Measure] ) = "Risk Mitigation"
            && SELECTEDVALUE ( 'ACT vs TGT Structure'[Value] ) = "Actual", FORMAT ( [xxxx], "#0%" ),
        //Risk Mitigation Target
        SELECTEDVALUE ( 'ACT vs TGT Structure'[Measure] ) = "Risk Mitigation"
            && SELECTEDVALUE ( 'ACT vs TGT Structure'[Value] ) = "Target", [xxxxxx],

It can be modified to add more elements to the table, the Measure and Values go in the column section of the matrix visual objects, while the measure goes on the values section.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

You can load two column to value, and you can receive it

vxiandatmsft_0-1705544280077.png

Best Regards,

Xianda Tang

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

Anonymous
Not applicable

Greetings @Anonymous , 
I am grateful for your answer, but there are some issues, the different columns are measures using data from several tables for every 2 measures, so the method you propose is unfortunately ineffective for my case. Do you have any other suggestion?

Anonymous
Not applicable

Update: I managed to obtain an acceptable solution, using this line of code:

ACT vs TGT =
CALCULATE (
    SWITCH (
        TRUE (),
        //Excess Actual
        SELECTEDVALUE ( 'ACT vs TGT Structure'[Measure] ) = "Excess"
            && SELECTEDVALUE ( 'ACT vs TGT Structure'[Value] ) = "Actual", FORMAT ( [Excess], "#,0" ),
        //Excess Target
        SELECTEDVALUE ( 'ACT vs TGT Structure'[Measure] ) = "Excess"
            && SELECTEDVALUE ( 'ACT vs TGT Structure'[Value] ) = "Target", FORMAT ( [Excess %], "#%" ),
           
        //Risk Mitigation Actual
        SELECTEDVALUE ( 'ACT vs TGT Structure'[Measure] ) = "Risk Mitigation"
            && SELECTEDVALUE ( 'ACT vs TGT Structure'[Value] ) = "Actual", FORMAT ( [xxxx], "#0%" ),
        //Risk Mitigation Target
        SELECTEDVALUE ( 'ACT vs TGT Structure'[Measure] ) = "Risk Mitigation"
            && SELECTEDVALUE ( 'ACT vs TGT Structure'[Value] ) = "Target", [xxxxxx],

It can be modified to add more elements to the table, the Measure and Values go in the column section of the matrix visual objects, while the measure goes on the values section.

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.