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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
PaulF0901
Regular Visitor

Filtering a Matrix to only show emails that begin with A to L

Hi,

 

Hopefully the title says it all but I am displaying two Matrix visuals. These show the count of activity within a product based on the users email address. 

 

Given there are so many users, I want to split the report out over two visuals, side by side. The left Matrix will show all email addressed from A to L. The Matrix on the right will show all email addresses M to Z. 

 

I cannot for the life of me figure out how to set a filter for the left hand visual, for example, to only show those emails that start A-L. Might anyone have any idea how I could do this?

 

Many thanks

1 ACCEPTED SOLUTION
rsbin
Super User
Super User

@PaulF0901 ,

Suggest as follows:
Create a new Calculated Column in your User Table.

Matrix = SWITCH(
     TRUE(),
     LEFT( [Email], 1 ) IN { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L" }, 1,      
// This obtains the first letter in your email string and assigns first matrix.
            2 ) // else assigns second matrix.

You can use "Left" or "Right" instead of 1 or 2 to define which Matrix you want to assign.

Then use this column in your Filter Pane for each Matrix visual.

This should get you what you are after.

Regards,

View solution in original post

1 REPLY 1
rsbin
Super User
Super User

@PaulF0901 ,

Suggest as follows:
Create a new Calculated Column in your User Table.

Matrix = SWITCH(
     TRUE(),
     LEFT( [Email], 1 ) IN { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L" }, 1,      
// This obtains the first letter in your email string and assigns first matrix.
            2 ) // else assigns second matrix.

You can use "Left" or "Right" instead of 1 or 2 to define which Matrix you want to assign.

Then use this column in your Filter Pane for each Matrix visual.

This should get you what you are after.

Regards,

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.