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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Thad
Frequent Visitor

Display movement over time in a matrix

Hello,

 

I am, so far unsuccessfully, trying to display the movement of group membership throughout time in a matrix.

 

My source is a table of 3 columns, "Stichtag" (Date of occurence), "Personennummer" (Customer ID) and "VR-Rating" (Group they belong to at the time), for which I created lookup tables named "Stichtag Aktuell", "Stichtag Vergleich", "Rating Aktuell" and "Rating Vergleich" with their respective distinct in values in them. The aim is to have a matrix that shows how many people moved groups (also from which to which) and how many stayed in their respective groups between two selected dates. Like this:

 

image.png

 

When I try it with this measure:

Rating =
VAR ST_Akt = SELECTEDVALUE(Stichtag_Aktuell[Stichtag])
VAR ST_Vgl = SELECTEDVALUE('Stichtag Vergleich'[Stichtag])
VAR VR_Akt = SELECTEDVALUE(Rating_Aktuell[VR-Rating])
VAR VR_Vgl = SELECTEDVALUE(Rating_Vergleich[VR-Rating])
 
RETURN CALCULATE(DISTINCTCOUNT(Rating_Bewegung[Personennummer]), FILTER(Rating_Bewegung, Rating_Bewegung[Stichtag] = ST_Akt && Rating_Bewegung[Stichtag] = ST_Vgl && Rating_Bewegung[VR-Rating] = VR_Akt && Rating_Bewegung[VR-Rating] = VR_Vgl))
it won't show any data because the filters cancel each other out. When I split it into two measures, calculating the values for each date seperately, it displays the values like this:
Thad_0-1705926335693.png

I know I would still have to calculate the actual movement as right now I just have the amount of members as my output but my first goal would be to get all the data in a matrix that has the same amount of columns as rows. What am I doing wrong? I am sure there is a simple solution to this. Is there another visual I could use? 

 

Thanks in advance

1 REPLY 1
v-binbinyu-msft
Community Support
Community Support

Hi @Thad ,

Sorry, so far, to my knowledge, this may not be achieveable.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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