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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Lucian
Responsive Resident
Responsive Resident

Matrix visual but different grouping?

Hello,

 

I have an matrix visual that would display an "usual pivot" information: Description on rows, Year-Month on columns and two measures budget (BGT) and actual (ACT) in values:

 

Pivot1.png

 

Is it possible to have the information grouped as in the picture below?:

 

Pivot2.png

 

Kind Regards,

Lucian 

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

I think you'll need a new dimension to add to the columns.

 

Create a new table dimType with a single Type column containing two values "BGT" and "ACT" and then a new measure that switches based on this new dimension.

SwitchMeasure =
SWITCH (
    SELECTEDVALUE ( dimType[Type] ),
    "BGT", [BGT],
    "ACT", [ACT]
)

You can use dimType[Type] in your matrix columns and this measure for the values.

View solution in original post

2 REPLIES 2
AlexisOlson
Super User
Super User

I think you'll need a new dimension to add to the columns.

 

Create a new table dimType with a single Type column containing two values "BGT" and "ACT" and then a new measure that switches based on this new dimension.

SwitchMeasure =
SWITCH (
    SELECTEDVALUE ( dimType[Type] ),
    "BGT", [BGT],
    "ACT", [ACT]
)

You can use dimType[Type] in your matrix columns and this measure for the values.

Hi @AlexisOlson ,

 

Thank you so much for your response. Indeed, it did the "trick". 👍

 

Kind Regards,

Lucian

 

 

 

 

 

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.